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

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 Sun Dec 18 18:30:28 2005 for libs11n-1.2.2 by  doxygen 1.4.4