VectorMemory< VECTOR >::Pointer Class Reference

List of all members.

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


Detailed Description

template<class VECTOR = ::Vector<double>>
class VectorMemory< VECTOR >::Pointer

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.

Author:
Guido Kanschat, 2009

Constructor & Destructor Documentation

template<class VECTOR = ::Vector<double>>
VectorMemory< VECTOR >::Pointer::Pointer ( VectorMemory< VECTOR > &  mem  ) 

Constructor, automatically allocating a vector from mem.

template<class VECTOR = ::Vector<double>>
VectorMemory< VECTOR >::Pointer::~Pointer (  ) 

Destructor, automatically releasing the vector from the memory pool.


Member Function Documentation

template<class VECTOR = ::Vector<double>>
VectorMemory< VECTOR >::Pointer::operator VECTOR * (  )  const

Conversion to regular pointer.

template<class VECTOR = ::Vector<double>>
VECTOR& VectorMemory< VECTOR >::Pointer::operator* (  )  const

Dereferencing operator.

template<class VECTOR = ::Vector<double>>
VECTOR* VectorMemory< VECTOR >::Pointer::operator-> (  )  const

Dereferencing operator.


Member Data Documentation

template<class VECTOR = ::Vector<double>>
SmartPointer<VectorMemory<VECTOR> > VectorMemory< VECTOR >::Pointer::pool [private]

The memory pool used.

template<class VECTOR = ::Vector<double>>
VECTOR* VectorMemory< VECTOR >::Pointer::v [private]

The pointer to the vector.


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

deal.II documentation generated on Sat Aug 15 16:52:31 2009 by doxygen 1.5.9