Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

s11n::map::streamable_pair_serializable_proxy Struct Reference

A proxy for de/serializing pair types holding two i/ostreamable components. More...

#include <mapish.hpp>

Inheritance diagram for s11n::map::streamable_pair_serializable_proxy:

Inheritance graph
[legend]
Collaboration diagram for s11n::map::streamable_pair_serializable_proxy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

template<typename NodeType, typename SerializableType>
bool operator() (NodeType &dest, const SerializableType &src) const
 Serializes src to dest.
template<typename NodeType, typename SerializableType>
bool operator() (const NodeType &src, SerializableType &dest) const
 Deserializes dest from src.

Detailed Description

A proxy for de/serializing pair types holding two i/ostreamable components.

It is NOT usable with pairs from map-like containers because those keys are const, and thus we cannot assign to them.

Added in 1.1.3.

Definition at line 544 of file mapish.hpp.


Member Function Documentation

template<typename NodeType, typename SerializableType>
bool s11n::map::streamable_pair_serializable_proxy::operator() const NodeType &  src,
SerializableType &  dest
const [inline]
 

Deserializes dest from src.

See the serialize operator for requirements placed on SerializableType.

See deserialize_streamable_pair() for more details.

Definition at line 572 of file mapish.hpp.

References s11n::map::deserialize_streamable_pair().

template<typename NodeType, typename SerializableType>
bool s11n::map::streamable_pair_serializable_proxy::operator() NodeType &  dest,
const SerializableType &  src
const [inline]
 

Serializes src to dest.

ACHTUNG: never pass the same destination container to this operator more than once or you will get duplicate and/or incorrect data.

SerializableType must be a std::pair<X,Y>, or compatible. X may not be a contst type.

See serialize_streamable_pair() for more details.

Definition at line 560 of file mapish.hpp.

References s11n::map::serialize_streamable_pair().


The documentation for this struct was generated from the following file:
Generated on Sun Dec 18 18:42:31 2005 for libs11n-1.2.2 by  doxygen 1.4.4