Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

AllocatingPointer< T, Cloner, default_own > Class Template Reference

#include <allocatingpointer.h>

Inheritance diagram for AllocatingPointer< T, Cloner, default_own >:

Inheritance graph
[legend]
Collaboration diagram for AllocatingPointer< T, Cloner, default_own >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class T, class Cloner = CopyAsNominalType<T>, bool default_own = false>
class AllocatingPointer< T, Cloner, default_own >

Version of OwningPointer that adds a default argument to the value constructor, thus making it parameter-less, which allows it to be used in e.g.

arrays.

Definition at line 160 of file allocatingpointer.h.

Public Methods

 AllocatingPointer (const T &value=T())
 Constructor for an internally-allocated variable.

 AllocatingPointer (T *value_pointer, bool owns_object=default_own)
 Constructor for a pointer to an external value.

void operator= (const T &new_value)
 Override the underlying value with a new one.


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:36:56 2003 for RF-LISSOM by doxygen1.3-rc2