class PStringSet: public PSet

This is a set collection class of PString objects.

Inheritance:


Public

[more] Construction
[more] Operations


Inherited from PSet:

Public

Overrides from class PObject

New functions for class


Inherited from PAbstractSet:

Public

Overrides from class PCollection


Inherited from PHashTable:

Protected

Overrides from class PContainer


Inherited from PCollection:

Public

Common functions for collections


Inherited from PContainer:

Public

Common functions for containers

Protected Methods

ovirtual void DestroyContents()
ovirtual void AssignContents(const PContainer & c)
ovoid CopyContents(const PContainer & c)
ovoid CloneContents(const PContainer * src)
ovoid Destruct()


Inherited from PObject:

Public

Run Time Type functions

Comparison functions

I/O functions

Miscellaneous functions


Documentation

This is a set collection class of PString objects. It has all the usual functions for a collection, with the object types set to PString pointers.

In addition some addition functions are added that take a const PString reference instead of a pointer as most standard collection functions do. This is more convenient for when string expressions are used as parameters to function in the collection.

Unlike the normal sets, this will delete the PStrings removed from it. This complements the automatic creation of new PString objects when literals or expressions are used.

See the PAbstractSet and PSet classes and PDECLARE_SET macro for more information.

o Construction

o PStringSet( PINDEX count, char const * const * strarr, BOOL caseless = FALSE )
Create a PStringArray from the array of C strings.
Parameters:
count - Count of strings in array
strarr - Array of C strings
caseless - New strings are to be PCaselessStrings

o Operations

ovoid Include( const PString & key )
Include the spcified string value into the set.
Parameters:
key - String value to add to set.

oPStringSet& operator+=( const PString & key )
Include the spcified string value into the set.
Parameters:
key - String value to add to set.

ovoid Exclude( const PString & key )
Exclude the spcified string value from the set.
Parameters:
key - String value to remove from set.

oPStringSet& operator-=( const PString & key )
Exclude the spcified string value from the set.
Parameters:
key - String value to remove from set.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.