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

s11n::default_serialize_functor Struct Reference

A default serialization proxy, which simply forwards de/serialize calls to an interface implemented as two overloaded member functions SerializableType::operator()( NodeT ). 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

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 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.

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.


The documentation for this struct was generated from the following file:
Generated on Sat Dec 10 13:41:46 2005 for libs11n-1.2.1 by  doxygen 1.4.4