A proxy for de/serializing pair types holding two i/ostreamable components. More...
#include <mapish.hpp>
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. |
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 538 of file mapish.hpp.
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 566 of file mapish.hpp.
References s11n::map::deserialize_streamable_pair().
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 554 of file mapish.hpp.
References s11n::map::serialize_streamable_pair().