Public Member Functions | |
Pointer (VectorMemory< VECTOR > &mem) | |
~Pointer () | |
operator VECTOR * () const | |
VECTOR & | operator* () const |
VECTOR * | operator-> () const |
Private Attributes | |
SmartPointer< VectorMemory < VECTOR > > | pool |
VECTOR * | v |
Pointer to vectors allocated from VectorMemory objects. This pointer is safe in the sense that it automatically calls free() when it is destroyed, thus relieving the user from using vector management functions at all.
VectorMemory< VECTOR >::Pointer::Pointer | ( | VectorMemory< VECTOR > & | mem | ) |
Constructor, automatically allocating a vector from mem
.
VectorMemory< VECTOR >::Pointer::~Pointer | ( | ) |
Destructor, automatically releasing the vector from the memory pool.
VectorMemory< VECTOR >::Pointer::operator VECTOR * | ( | ) | const |
Conversion to regular pointer.
VECTOR& VectorMemory< VECTOR >::Pointer::operator* | ( | ) | const |
Dereferencing operator.
VECTOR* VectorMemory< VECTOR >::Pointer::operator-> | ( | ) | const |
Dereferencing operator.
SmartPointer<VectorMemory<VECTOR> > VectorMemory< VECTOR >::Pointer::pool [private] |
The memory pool used.
VECTOR* VectorMemory< VECTOR >::Pointer::v [private] |
The pointer to the vector.