mace::set< Key, Serial, LessFcn, Alloc > Class Template Reference
[Collections]

#include <mset.h>

Inheritance diagram for mace::set< Key, Serial, LessFcn, Alloc >:

Inheritance graph
[legend]
Collaboration diagram for mace::set< Key, Serial, LessFcn, Alloc >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<class Key, class Serial = SerializeSet<Key>, class LessFcn = std::less<Key>, class Alloc = std::allocator<Key>>
class mace::set< Key, Serial, LessFcn, Alloc >

mace::set extends std::set, adds printability and optional serialization, contains, containsKey, set contains, and random element

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

Definition at line 61 of file mset.h.


Public Member Functions

void clear ()
 removes all elements of the set
size_t size () const
 returns the size of the set
bool contains (const Key &k) const
 returns find(k) != this->end()
bool containsKey (const Key &k) const
 equivalent to contains(const Key&)
bool contains (const baseType &other) const
 set contains - if this set contains all elements of other, using ordered property to make efficient
const_iterator random () const
 return a random element, or end() if empty
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:41 2008 for Mace Library by  doxygen 1.5.5