#include <dict.h>
Inheritance diagram for POrdinalKey:
Public Member Functions | |
Construction | |
PINLINE | POrdinalKey (PINDEX newKey=0) |
PINLINE POrdinalKey & | operator= (PINDEX) |
Overrides from class PObject | |
virtual PObject * | Clone () const |
Create a duplicate of the POrdinalKey. | |
virtual Comparison | Compare (const PObject &obj) const |
virtual PINDEX | HashFunction () const |
virtual void | PrintOn (ostream &strm) const |
New functions for class | |
PINLINE | operator PINDEX () const |
PINLINE PINDEX | operator++ () |
PINLINE PINDEX | operator++ (int) |
PINLINE PINDEX | operator-- () |
PINLINE PINDEX | operator-- (int) |
PINLINE POrdinalKey & | operator+= (PINDEX) |
PINLINE POrdinalKey & | operator-= (PINDEX) |
|
Create a new key for ordinal index values.
|
|
Create a duplicate of the POrdinalKey.
Reimplemented from PObject. |
|
Compare the two objects and return their relative rank. This function is usually overridden by descendent classes to yield the ranking according to the semantics of the object. The default function is to use the CompareObjectMemoryDirect()# function to do a byte wise memory comparison of the two objects.
Reimplemented from PObject. |
|
This function calculates a hash table index value for the implementation of #PSet# and #PDictionary# classes.
Reimplemented from PObject. |
|
Operator so that a POrdinalKey can be used as a PINDEX value. |
|
Operator to post-increment the ordinal. |
|
Operator to pre-increment the ordinal. |
|
Operator to add the ordinal. |
|
Operator to post-decrement the ordinal. |
|
Operator to pre-decrement the ordinal. |
|
Operator to subtract from the ordinal. |
|
Operator to assign the ordinal. |
|
Output the ordinal index to the specified stream. This is identical to outputting the PINDEX, ie integer, value.
Reimplemented from PObject. |