Public Member Functions | Private Attributes

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 >, Pointer
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

Definition at line 124 of file vector_memory.h.


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>,Pointer> VectorMemory< VECTOR >::Pointer::pool [private]

The memory pool used.

Definition at line 158 of file vector_memory.h.

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

The pointer to the vector.

Definition at line 162 of file vector_memory.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:13 by doxygen 1.7.2