#include <CNCL/Key.h>
CN_KEY
CNObject
CNKeyString, CNKeyInt
CNHashTable, CNHashStatic, CNHashDynamic, CNHashIterator, CNManager
CNKey
is an abstract class for managing CNCL compatible objects
via keys. Refer to the desription of the classes derived from CNKey
for further information. Objects of this type can be stored in and
retrieved from hash tables.
Constructors:
CNKey(CNObject *obj = NIL);
CNKey(CNParam *param);
CNKey
.
In addition to the member functions required by CNCL, CNKey
provides:
void set_object(CNObject *obj);
void set_object(CNObject &obj);
CNObject *get_object() const;
NIL
is returned.
The following virtual functions are to be defined by derived classes:
virtual unsigned long hash( unsigned long capacity, int par = 0) const = 0;
virtual bool compare(CNKey *k) const = 0;
virtual bool compare(CNKey &k) const = 0;
CNKeys
.
Go to the first, previous, next, last section, table of contents.