oaHashMap Class Template Reference


Public Methods

 oaHashMap (oaUInt4 sizeIn=32)
void add (const K &key, const D &datum)
oaBoolean find (const K &key, D &datum) const
void remove (const K &key)
oaUInt4 getNumEntries () const

Protected Methods

virtual void hash (K key, oaUInt4 &start, oaUInt4 &stride) const=0
virtual oaBoolean compare (K key1, K key2) const=0
void hashIndex (oaUInt4 index, oaUInt4 &start, oaUInt4 &stride) const
oaBoolean compareIndex (oaUInt4 index, const K &key) const
const oaHashMapTbl< K, D > * getHashTbl () const

Friends

class oaHashMapTbl< K, D >
class oaHashMapIter< K, D >

template<class K, class D>
class oaHashMap< K, D >


Constructor & Destructor Documentation

template<class K, class D>
BEGIN_OA_NAMESPACE oaHashMap< K, D >::oaHashMap oaUInt4    sizeIn = 32
 


Member Function Documentation

template<class K, class D>
void oaHashMap< K, D >::add const K &    key,
const D &    datum
 

template<class K, class D>
virtual oaBoolean oaHashMap< K, D >::compare K    key1,
K    key2
const [protected, pure virtual]
 

template<class K, class D>
oaBoolean oaHashMap< K, D >::compareIndex oaUInt4    index,
const K &    key
const [protected]
 

template<class K, class D>
oaBoolean oaHashMap< K, D >::find const K &    key,
D &    datum
const
 

template<class K, class D>
const oaHashMapTbl< K, D > * oaHashMap< K, D >::getHashTbl   const [protected]
 

template<class K, class D>
oaUInt4 oaHashMap< K, D >::getNumEntries   const
 

template<class K, class D>
virtual void oaHashMap< K, D >::hash K    key,
oaUInt4 &    start,
oaUInt4 &    stride
const [protected, pure virtual]
 

template<class K, class D>
void oaHashMap< K, D >::hashIndex oaUInt4    index,
oaUInt4 &    start,
oaUInt4 &    stride
const [protected]
 

template<class K, class D>
void oaHashMap< K, D >::remove const K &    key
 


Friends And Related Function Documentation

template<class K, class D>
friend class oaHashMapIter< K, D > [friend]
 

template<class K, class D>
friend class oaHashMapTbl< K, D > [friend]
 


The documentation for this class was generated from the following files:

Return to top of page