nemo::CopyAllocator< T > Class Template Reference

An interface for generalized copy-construction of objects of type T inside an IntrusiveCowSupport<T>. More...

#include <IntrusiveCowSupport.h>

List of all members.

Static Public Member Functions

static T * copyAllocate (const T *value)
 Allocates a new object with same content, such that @*copyAllocate(ptr) == *ptr@.

Detailed Description

template<class T>
class nemo::CopyAllocator< T >

An interface for generalized copy-construction of objects of type T inside an IntrusiveCowSupport<T>.

The default behavior is the 'standard' copy-construction of pointer-contents: = new T(*ptr)@. If (and only if) your class T has a memory management that does not permit such an implementation, You can modify the behavior by template-specialization (effective for all instances of T), or by inheritance (in order to use different allocators for different instances of T).

Definition at line 18 of file IntrusiveCowSupport.h.


Member Function Documentation

template<class T >
static T* nemo::CopyAllocator< T >::copyAllocate ( const T *  value  )  [inline, static]

Allocates a new object with same content, such that @*copyAllocate(ptr) == *ptr@.

Definition at line 23 of file IntrusiveCowSupport.h.


The documentation for this class was generated from the following file:
Generated on Mon Feb 25 12:49:59 2013 for NemoMath by  doxygen 1.6.3