s11n::default_serialize_functor Struct Reference

An unfortunate necessity. More...

#include <traits.hpp>

List of all members.

Public Member Functions

template<typename NodeT, typename SerializableType>
bool operator() (NodeT &dest, const SerializableType &src) const
 Serialize src to dest using src.operator()( dest ).
template<typename NodeT, typename DeserializableType>
bool operator() (const NodeT &src, DeserializableType &dest) const
 Deserialize dest from src using dest.operator()( src ).


Detailed Description

An unfortunate necessity.

A default serialization proxy, which simply forwards de/serialize calls to an interface implemented as two overloaded member functions SerializableType::operator()( NodeT ).

Definition at line 283 of file traits.hpp.


Member Function Documentation

template<typename NodeT, typename SerializableType>
bool s11n::default_serialize_functor::operator() ( NodeT &  dest,
const SerializableType &  src 
) const [inline]

Serialize src to dest using src.operator()( dest ).

The serialize operator must look like:

bool operator()( NodeT & ) const;

It may be virtual or a function template.

Definition at line 295 of file traits.hpp.

template<typename NodeT, typename DeserializableType>
bool s11n::default_serialize_functor::operator() ( const NodeT &  src,
DeserializableType &  dest 
) const [inline]

Deserialize dest from src using dest.operator()( src ).

The deserialize operator must look like:

bool operator()( const NodeT & );

It may be virtual or a function template.

Definition at line 310 of file traits.hpp.


The documentation for this struct was generated from the following file:
Generated on Sun Apr 27 11:50:03 2008 for libs11n-1.2.6 by  doxygen 1.5.3