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

Persistent 1:1 map. This is a Serial Datacron implimented as a memory resident 1:1 map, plus delta file. Note that classes represented by KEY and OBJ must have serialization functions. Specifically they must have a >> ifstream operator, and either a << ostream operator or an operator const char*. Note that unlike hzMapS, the classes represented by KEY and OBJ must have serialization functions.

Constructors/Detructors

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

Public Methods:

voidClear(void)
uint32_tCount(void)
hzEcodeDelete(KEY& key)
voidDeltaClose(void)
voidDeltaOpen(void)
voidDeltaSet(hzString& path)
boolExists(KEY& key)
int32_tFirst(KEY key)
KEY&GetKey(uint32_t nIndex)
OBJ&GetObj(uint32_t nIndex)
hzEcodeInsert(KEY& key)OBJ& obj,
int32_tLast(KEY key)
hzEcodeNodeErrors(void)
hzEcodeNodeReport(void)
uint32_tNodes(void)
voidSetName(hzString& name)
int32_tTarget(KEY key)

Overloaded operators:

hzPMapS<KEY,OBJ>&operator=(hzPMapS<KEY,OBJ>&)
OBJ&operator[](KEY& key)

Member Variables:

boolm_bOpenIs delta file open for writing
hzMapS<KEY,OBJ>m_mapThe map
ofstreamm_osDelta file
hzStringm_pathDelta file path