Caelum  0.6.3
Public Types | Static Public Member Functions | List of all members
Caelum::DefaultPrivatePtrTraits< PointedT > Struct Template Reference

Default traits for Caelum::PrivatePtr. More...

#include <PrivatePtr.h>

Public Types

typedef PointedT * InnerPointerType
 The type of the inner member to hold in PrivatePtr.
 

Static Public Member Functions

static InnerPointerType getNullValue ()
 Return an InnerPointerType repressenting a null value.
 
static PointedT * getPointer (const InnerPointerType &inner)
 Convert InnerPointerType to a naked PointedT.
 
static void destroy (InnerPointerType &inner)
 Destroy the inner value (and set null).
 

Detailed Description

template<class PointedT>
struct Caelum::DefaultPrivatePtrTraits< PointedT >

Default traits for Caelum::PrivatePtr.

This default traits class make PrivatePtr work like std::auto_ptr. Other Traits classes can derive from this and only customize some of the functions.

See also
PrivatePtr

The documentation for this struct was generated from the following file: