#include <MercuryVector.h>
Inheritance diagram for MHash< T >:
Public Member Functions | |
MHash () | |
MHash (const MHash &rhs) | |
MHash & | operator= (const MHash &rhs) |
void | resize (int iNewSize) |
~MHash () | |
void | clear () |
T & | operator[] (const MString &pIndex) |
Return reference to data in the index's cell, if no data exists, it is generated. | |
void | insert (const MString &pIndex, const T &pData) |
Insert pData into pIndex's cell. | |
T * | get (const MString &pIndex) |
Get pointer to pIndex's cell, if no data exists, NULL is returned. | |
bool | remove (const MString &pIndex) |
void | VectorIndicies (MVector< MString > &vOut) |
Private Attributes | |
MHashNode< T > ** | m_pTable |
T | m_pNil |
unsigned int | m_iSize |
unsigned int | m_iPrimest |
unsigned int | m_iCount |
Classes | |
struct | MHashNode |
Definition at line 436 of file MercuryVector.h.
Definition at line 439 of file MercuryVector.h.
Definition at line 446 of file MercuryVector.h.
Definition at line 513 of file MercuryVector.h.
Definition at line 466 of file MercuryVector.h.
void MHash< T >::resize | ( | int | iNewSize | ) | [inline] |
Definition at line 487 of file MercuryVector.h.
void MHash< T >::clear | ( | ) | [inline] |
Definition at line 525 of file MercuryVector.h.
Return reference to data in the index's cell, if no data exists, it is generated.
Definition at line 541 of file MercuryVector.h.
Get pointer to pIndex's cell, if no data exists, NULL is returned.
Definition at line 578 of file MercuryVector.h.
Definition at line 592 of file MercuryVector.h.
Definition at line 618 of file MercuryVector.h.
Definition at line 645 of file MercuryVector.h.
Definition at line 646 of file MercuryVector.h.
Definition at line 647 of file MercuryVector.h.
unsigned int MHash< T >::m_iPrimest [private] |
Definition at line 648 of file MercuryVector.h.
Definition at line 649 of file MercuryVector.h.