|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Parent Classes:
Derived Classes:
Variables:
- Index Size;
-
- HashInt1DElem ** Array;
-
Methods:
- HashInt1D(Index nSize = 20)
-
Default constructor.
- HashInt1D(const HashInt1D<T> & Oth)
-
Copy constructor.
- HashInt1D(const HashInt1D<T> & Oth,int nSize)
-
- ~HashInt1D()
-
Destructor.
- Index HashVal(Index V) const
-
Get the index into array from hash value.
- T * Lookup(Index Key) const
-
Lookup key in table.
Returns NULL if not found.
- T & Add(Index Key,const T & Data)
-
Add new element. !! Doesn't check if exists already !!
- T & Add(Index Key)
-
Add without setting data. !! Doesn't check if exists already !!
- T & Insert(HashInt1DBase::Index Key,const T & Data)
-
New alias for Add.
- T & Insert(HashInt1DBase::Index Key)
-
New alias for Add.
- T & operator[](Index Key)
-
Lookup key, create if not found.
- BooleanT Update(Index Key,const T & Data)
-
Update value(Ret:TRUE), if not there add it (Ret:FALSE).
- T & Update(Index Key)
-
Get value, add default if its not there. (Could be faster.)
- BooleanT Remove(Index key)
-
Delete value by key.
- void Empty(void)
-
Remove all items from table.
- HashInt1D<T> & operator=(const HashInt1D<T> & Oth)
-
Not cheap !
- void Move(HashInt1D<T> & Oth)
-
Move contents of other set to this, leave other empty.
NB. Empties this set first !!
- void Resize(Index nSize)
-
Resize the hashtable.
- Index GetHashSize(void) const
-
Get Hashtable size.
- Index Count(void) const
-
Count elements in hash table.
- BooleanT IsEmpty(void) const
-
Is table empty ??
- BooleanT Remove(const HashInt1DElem<T> * Elem,Index BinNo)
-
|
Programmer:Charles Galambos, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|