|
Caelum
0.6.4
|
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). | |
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.