mace::_SerializeMap< Key, Value > Class Template Reference

#include <CollectionSerializers.h>

Inheritance diagram for mace::_SerializeMap< Key, Value >:

Inheritance graph
[legend]
Collaboration diagram for mace::_SerializeMap< Key, Value >:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename Key, typename Value>
class mace::_SerializeMap< Key, Value >

Generic class for serializing maps.

Maps work like sets, but each element is a key and value. Multimaps are maps too, but won't work with XML_RPC serialization if there are actual duplicate keys. The runtime implementation behavior is unknown.

Definition at line 278 of file CollectionSerializers.h.


Public Member Functions

virtual void clear ()
 called to clear all elements
virtual size_t size () const
 called to return the number of elements
void serialize (std::string &str) const
 serialization proceeds by serializing the size, then each element, key then value.
int deserialize (std::istream &in) throw (SerializationException)
 deserialization proceeds by reading the size, clearing the map, then reading in key then value for size count
int deserializeXML_RPC (std::istream &in) throw (SerializationException)
 map XML_RPC serialization uses XML_RPC struct serialzation (key is a member name, value is the value)
void serializeXML_RPC (std::string &str) const throw (SerializationException)
 map XML_RPC serialization uses XML_RPC struct serialzation (key is a member name, value is the value)

Protected Member Functions

virtual Value & insertKey (const Key &k)
 inserts an element into the map with Key k, returning a reference to the Value for deserialization
virtual const_iteratorgetIterator () const
 gets an iterator

Classes

class  const_iterator
 Const iteration is used for serializing map elements. More...

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

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