#include <CNCL/KeyString.h>
CN_KEYSTRING
CNKey
None
CNKeyInt, CNHashTable, CNHashStatic, CNHashDynamic, CNHashIterator, CNManager
CNKeyString
is a class for managing CNCL compatible objects
via CNString
keys. Objects of this type can be stored in and
retrieved from hash tables.
Constructors:
CNKeyString(CNStringR key_string, CNObject *obj = NIL);
CNKeyString(CNParam *param);
CNKeyString
. The supplied string key is used
to calculate the hash table position. Therefore, the string key
must be unique. Make sure, that the string key is valid
during the whole lifetime of the respective key. Otherwise operations
on this key are unpredictable.
In addition to the member functions required by CNCL, CNKeyString
provides:
CNStringR get_key() const;
virtual unsigned long hash( unsigned long capacity, int par = 0) const;
par
is reserved for
future use, any other value than zero will result in an fatal error.
virtual bool compare(CNKey *k) const;
virtual bool compare(CNKey &k) const;
CNKeys
.
Go to the first, previous, next, last section, table of contents.