mace::multimap< Key, Data, Serial, Compare, Alloc > Class Template Reference
[Collections]

#include <mmultimap.h>

Inheritance diagram for mace::multimap< Key, Data, Serial, Compare, Alloc >:

Inheritance graph
[legend]
Collaboration diagram for mace::multimap< Key, Data, Serial, Compare, Alloc >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class Key, class Data, class Serial = SerializeMap<Key, Data>, class Compare = std::less<Key>, class Alloc = std::allocator<std::pair<const Key, Data> >>
class mace::multimap< Key, Data, Serial, Compare, Alloc >

mace::multimap extends std::multimap, with support for printing and optional serialization, containsKey, get, and random

For most documentation, you should refer to the SGI STL documentation http://www.sgi.com/tech/stl

Definition at line 62 of file mmultimap.h.


Public Member Functions

void clear ()
 remove all elements from the map.
size_t size () const
 number of elements in the map.
bool containsKey (const Key &k) const
 whether key k is in the map. Equivalent to find(k) != end() (Mace extension)
deque< Data > get (const Key &k) const
 retrieve data from key k as a possibly empty deque of items (one for each match)
const_iterator random () const
 return a random element of the multimap
const std::string & getTypeName () const
 Return the template parameter string Key->Data for actual template parameters. (Mace extension).

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

Generated on Sat Oct 4 21:30:40 2008 for Mace Library by  doxygen 1.5.5