Class Index Cross Index Namespace Index

template Class General::AutoArray< typename T >

Auto_ptr for arrays.
Contained in: General
Derived from: none
Derived by: none

#include "general/autoarray.hh"


public function member index:

explicit AutoArray(T* ptr_to_delete = 0);
AutoArray(AutoArray<T>& Data); Copy Constructor
AutoArray(AutoArrayRef< T > Ref);
~AutoArray();
operator AutoArray();
operator AutoArrayRef();
T* get() const;
T* operator ->() const;
AutoArray& operator =(AutoArray& A);
AutoArray& operator =(AutoArrayRef< T > Ref);
T& operator [](const size_t index) const;
T* release();
void reset(T* p = 0);
 

Description:



Function Member Descriptions:


General::AutoArray::AutoArray


explicit AutoArray(T* ptr_to_delete = 0);
Constructor




General::AutoArray::AutoArray - Copy Constructor


AutoArray(AutoArray<T>& Data);

Construct a new AutoArray. This object takes ownership from the previous object





General::AutoArray::AutoArray


AutoArray(AutoArrayRef< T > Ref);
The following methods give reference like symantics to AutoArray




General::AutoArray::~AutoArray


~AutoArray();
Destructor




General::AutoArray::AutoArray


operator AutoArray();



General::AutoArray::AutoArrayRef


operator AutoArrayRef();



General::AutoArray::get


T* get() const;



General::AutoArray::operator ->


T* operator ->() const;



General::AutoArray::operator =


AutoArray& operator =(AutoArray& A);



General::AutoArray::operator =


AutoArray& operator =(AutoArrayRef< T > Ref);



General::AutoArray::operator []


T& operator [](const size_t index) const;
auto_ptr compatability




General::AutoArray::release


T* release();



General::AutoArray::reset


void reset(T* p = 0);



Variable Member Descriptions:


General::AutoArray::mArray -

T* mArray;