Tools.h++ Class Reference

Table Of Contents
Equivalent keys within the collection will be grouped together based on an equality object of
type EQ. EQ must ensure this grouping via public member
bool operator()(const K& x, const K& y)
which should return true if x and y are equivalent.
RWTValHashMap<K,T,H,EQ> will not accept a key that compares equal to any key already in
the collection. (RWTValHashMultiMap<K,T,H,EQ> may contain multiple keys that compare
equal to each other.) Equality is based on the equality object and not on the == operator.
Persistence
Isomorphic
Related Classes
Class RWTValHashMultiMap<K,T,H,EQ> offers the same interface to a collection that
accepts multiple keys that compare equal to each other.
Class rw_hashmap<K,T,H,EQ> is the C++-standard compliant collection that serves as the
underlying implementation for this collection.
Public Typedefs
typedef rw_hashmap<K,T,H,EQ> container_type;
typedef container_type::iterator iterator;
typedef container_type::const_iterator const_iterator;
typedef container_type::size_type size_type;
typedef pair <const K,T> value_type;
typedef K key_type;
typedef T data_type;
typedef pair <const K,T>& reference;
typedef pair <const K,T>& const_reference;
Public Constructors
RWTValHashMap<K,T,H,EQ>();
Constructs an empty map.
RWTValHashMap<K,T,H,EQ>(const rw_hashmap<K,T,H,EQ>& m);
Constructs a map by copying all elements of m.
RWTValHashMap<K,T,H,EQ>
(const H& h, size_type sz = RWDEFAULT_CAPACITY);