#include <CNCL/KeyInt.h>
CN_KEYINT
CNKey
None
CNKeyString, CNKeyObject, CNHashTable, CNHashStatic, CNHashDynamic, CNHashIterator, CNManager
CNKeyInt
is a class for managing CNCL compatible objects
via integer keys. Objects of this type can be stored in and
retrieved from hash tables.
Constructors:
CNKeyInt(unsigned long key_int, CNObject *obj = NIL);
CNKeyInt(CNParam *param);
CNKeyInt
. The supplied integer key is used
to calculate the hash table position. Therefore, the integer key
must be unique.
In addition to the member functions required by CNCL, CNKeyInt
provides:
unsigned long get_key() const;
virtual unsigned long hash( unsigned long capacity, int par = 0) const;
virtual bool compare(CNKey *k) const;
virtual bool compare(CNKey &k) const;
CNKeys
.
Go to the first, previous, next, last section, table of contents.