Templated class, defined and implimented in file: hzTmplMapS.h
The hzMapS template provides a memory resident one to one map of keys to objects. The keys are required to be unique and there may only be one object per key. Both the keys and the objects can be of any C++, HadronZoo or application specific type.
Constructors/Detructors
| hzMapS* | hzMapS | (hzMapS<KEY,OBJ>&) | |
| hzMapS* | hzMapS | (void) | |
| hzMapS* | hzMapS | (hzLockOpt eLock) | |
| hzMapS* | hzMapS | (hzString& name) | |
| hzMapS* | hzMapS | (hzLockOpt eLock)hzString& name, | |
| void | ~hzMapS | (void) |
Public Methods:
| void | Clear | (void) | |
| uint32_t | Count | (void) | |
| hzEcode | Delete | (KEY& key) | _hzfunc("hzMapS::Delete") ; |
| bool | Exists | (KEY& key) | _hzfunc("hzMapS::Exists") ; |
| int32_t | First | (KEY key) | _hzfunc("hzMapS::First") ; |
| KEY& | GetKey | (uint32_t nIndex) | _hzfunc("hzMapS::GetKey") ; |
| OBJ& | GetObj | (uint32_t nIndex) | _hzfunc("hzMapS::GetObj") ; |
| hzEcode | Insert | (KEY& key)OBJ& obj, | _hzfunc("hzMapS::Insert") ; |
| int32_t | Last | (KEY key) | _hzfunc("hzMapS::Last") ; |
| hzEcode | NodeErrors | (void) | |
| hzEcode | NodeReport | (void) | |
| uint32_t | Nodes | (void) | |
| void | SetLock | (hzLockOpt eLock) | |
| void | SetName | (hzString& name) | |
| int32_t | Target | (KEY key) | _hzfunc("hzMapS::Target") ; |
Overloaded operators:
| hzMapS<KEY,OBJ>& | operator= | (hzMapS<KEY,OBJ>&) | |
| OBJ& | operator[] | (KEY& key) | _hzfunc("hzMapS::operator[]") ; |
Member Variables:
| _hz_tmpl_ISAM | base | _hz_set_isam_Value ordered list by value | |
| KEY | m_DefaultKey | Default key (effectively NULL) | |
| OBJ | m_DefaultObj | Default key (effectively NULL) | |
| KEY | m_NullKey | Null key | |
| OBJ | m_NullObj | Null key |