class PStringToOrdinal

This is a dictionary collection class of ordinals keyed by PString objects.

Inheritance:


Public Methods

[more] Overrides from class PObject

Public Members

[more] Construction


Inherited from POrdinalDictionary:

Public Methods

New functions for class


Inherited from PAbstractDictionary:

Public Methods

Overrides from class PCollection


Inherited from PHashTable:

Protected Methods

Overrides from class PContainer


Inherited from PCollection:

Public Methods

Common functions for collections


Inherited from PContainer:

Public Methods

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 Methods

Run Time Type functions

I/O functions

Public Members

Comparison functions


Documentation

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

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

See the PAbstractDicionary and POrdinalDictionary classes and PDECLARE_ORDINAL_DICTIONARY macro for more information.

o Construction

ostruct Initialiser
Structure for static array initialiser for class

oconst char* key
String key for ordinal

oPINDEX value
Ordinal value for string

o PStringToOrdinal( PINDEX count, const Initialiser* init, BOOL caseless = FALSE )
Initialise the string dictionary of ordinals from the static array.
Parameters:
- count Count of strings in initialiser array
init - Array of Initialiser structures
caseless - New keys are to be PCaselessStrings

o Overrides from class PObject

ovirtual void ReadFrom( istream &strm )
Input the contents of the object from the stream. This is primarily used by the standard operator>> function.

The default behaviour reads '\n' separated strings until !strm.good().


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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