Templated class, defined and implimented in file: hzTmplMapL.h

The hzLookup template is a special case of a hzMapS providing a memory resident one to one map of strings (hzString) to objects. The strings are required to be unique and there may only be one object per key. Only the objects can be of any C++, HadronZoo or application specific type. hzLookup is considered UNORDERED because it uses the fast string compare function (fscompare). This function compares strings as though they were arrays of int64_t and thus only gives a valid lexical comparison in big-endian CPU architectures.

Constructors/Detructors

hzLookup*hzLookup(hzLookup<OBJ>&)
hzLookup*hzLookup(void)
hzLookup*hzLookup(hzLockOpt eLock)
hzLookup*hzLookup(hzString& name)
hzLookup*hzLookup(hzLockOpt eLock)hzString& name,
void~hzLookup(void)

Public Methods:

voidClear(void)
uint32_tCount(void)
hzEcodeDelete(hzString& key)
boolExists(hzString& key)
hzString&GetKey(int32_t nIndex)
OBJ&GetObj(int32_t nIndex)
hzEcodeInsert(hzString& key)OBJ& obj,
hzEcodeNodeErrors(void)
hzEcodeNodeReport(void)
uint32_tNodes(void)
voidSetLock(hzLockOpt eLock)

Overloaded operators:

hzLookup<OBJ>&operator=(hzLookup<OBJ>&)
OBJ&operator[](hzString& key)

Member Variables:

_hz_tmpl_ISAMbase_hz_set_isam_Value ordered list by value
hzStringm_DefaultKeyDefault key (effectively NULL)
OBJm_DefaultObjDefault key (effectively NULL)
hzStringm_NullKeyNull key
OBJm_NullObjNull key