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 285 of file traits.hpp.


Member Function Documentation

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 312 of file traits.hpp.

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 297 of file traits.hpp.


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

Generated on Sat Mar 20 12:29:25 2010 for libs11n-1.2.10 by  doxygen 1.6.1