#include <CollectionSerializers.h>


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_iterator * | getIterator () const |
| gets an iterator | |
Classes | |
| class | const_iterator |
| Const iteration is used for serializing map elements. More... | |
1.5.5