Class Hierarchy Compound List File List Header Files Compound Members File Members
suif_hash_map Class Reference
a map function based on a hash table \see suif_map.
More...
#include <common/suif_hash_map.h>
Class diagram for suif_hash_map:
List of all members.Public Members
Detailed Description
template<class domain, class range> class suif_hash_map
a map function based on a hash table \see suif_map.
Member Typedef Documentation
template<class domain, class range>
typedef literator suif_hash_map<domain, range>::iterator
template<class domain, class range>
typedef const literator suif_hash_map<domain, range>::const_iterator
template<class domain, class range>
typedef pair suif_hash_map<domain, range>::value_type
template<class domain, class range>
typedef domain suif_hash_map<domain, range>::key_type
template<class domain, class range>
typedef range suif_hash_map<domain, range>::data_type
Member Function Documentation
template<class domain, class range>
pair & suif_hash_map<domain, range>::enter_value (domain x, range y)
Enter a value into the table with key x and value y.
template<class domain, class range>
iterator suif_hash_map<domain, range>::find (const domain & x) const
Find an entry by key.
Returns end() if not found
template<class domain, class range>
iterator suif_hash_map<domain, range>::begin ()
Get an iterator to iterate over the values.
-
Warning:
-
{The order is not specified. In particular it cannot be expected that it will be the order in which the values were entered}
template<class domain, class range>
const_iterator suif_hash_map<domain, range>::begin () const
template<class domain, class range>
iterator suif_hash_map<domain, range>::end ()
template<class domain, class range>
const_iterator suif_hash_map<domain, range>::end () const
template<class domain, class range>
pair & suif_hash_map<domain, range>::operator[] (const domain & x)
Find a value in the table.
\warning. If none is found, a default entry will be created. If you do not want this to happen, use find instead.}
template<class domain, class range>
void suif_hash_map<domain, range>::erase (iterator & iter)
template<class domain, class range>
suif_hash_map<domain, range>::suif_hash_map<domain, range> (int size = 32)
Create hash table.
-
Parameters:
-
size - the size of the hash table to use. This will be rounded up to a power of 2
template<class domain, class range>
suif_hash_map<domain, range>::~suif_hash_map<domain, range> ()
template<class domain, class range>
iterator suif_hash_map<domain, range>::insert (iterator & x, const pair & p)
Insert a value.
The iterator value is ignored.
template<class domain, class range>
unsigned suif_hash_map<domain, range>::size () const
The documentation for this class was generated from the following files:
Generated at Mon Nov 22 19:44:01 1999 for NCI SUIF by
written by Dimitri van Heesch, © 1997-1999