#include <CNCL/KeyObject.h>
CN_KEYOBJECT
CNKey
None
CNKeyString, CNKeyInt, CNHashTable, CNHashStatic, CNHashDynamic, CNHashIterator, CNManager
CNKeyObject
is a class for managing CNCL compatible objects
via CNCL object pointer keys. Objects of this type can be stored in and
retrieved from hash tables.
Constructors:
CNKeyObject(CNObject *key_int, CNObject *obj = NIL);
CNKeyObject(CNParam *param);
CNKeyObject
. The supplied object pointer key is used
to calculate the hash table position. Therefore, the object pointer key
must be unique. In normal memory models this is complied.
In addition to the member functions required by CNCL, CNKeyObject
provides:
CNObject *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.