Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MangoPtr::CntrClonerSorted< Container > Struct Template Reference

#include <CntrCloner.hh>

List of all members.


Detailed Description

template<typename Container>
struct MangoPtr::CntrClonerSorted< Container >

CntrCloner that works for sorted containers.

To make use of it, you must define a specialization of CntrCloner for your container type, in which the execute() method calls CntrClonerSorted::execute(). See CntrCloner<std::map> in STLMapCloner.hh for an example.

Definition at line 97 of file CntrCloner.hh.

Static Public Methods

template<typename X> void xform (Container &obj, X *x)
 transform element x in obj

template<typename X, typename Y> void xform (Container &obj, const std::pair< X *const, Y > &x)
 this will work for maps etc

void execute (Container &obj)
 carry out the clone operation


The documentation for this struct was generated from the following file:
Generated on Tue Nov 12 20:44:02 2002 for Mango-ptr Library by doxygen1.2.18