s11n::default_cleanup_functor< S11N_MAP_TYPE< T1, T2 > > Struct Template Reference

Specialization for std::map-compliant types. More...

#include <reg_map_specializations.hpp>

List of all members.

Public Types

typedef
S11N_MAP_TYPE< T1,
T2 > 
serializable_type

Public Member Functions

void operator() (serializable_type &p) const throw ()
 ACHTUNG: it can only deallocate the .second member of each mapped pair, because the first is const.


Detailed Description

template<typename T1, typename T2>
struct s11n::default_cleanup_functor< S11N_MAP_TYPE< T1, T2 > >

Specialization for std::map-compliant types.

Definition at line 32 of file reg_map_specializations.hpp.


Member Typedef Documentation

template<typename T1, typename T2>
typedef S11N_MAP_TYPE<T1,T2> s11n::default_cleanup_functor< S11N_MAP_TYPE< T1, T2 > >::serializable_type

Definition at line 34 of file reg_map_specializations.hpp.


Member Function Documentation

template<typename T1, typename T2>
void s11n::default_cleanup_functor< S11N_MAP_TYPE< T1, T2 > >::operator() ( serializable_type p  )  const throw () [inline]

ACHTUNG: it can only deallocate the .second member of each mapped pair, because the first is const.

Since it would be very unusual to serialize a map keyed on unmanaged pointers, this is not seen as a major problem.

After this call, p is empty.

Definition at line 45 of file reg_map_specializations.hpp.

References S11N_TRACE, and s11n::debug::TRACE_CLEANUP.


The documentation for this struct was generated from the following file:
Generated on Wed Jun 4 21:44:20 2008 for libs11n by  doxygen 1.5.3