PrimitiveVectorMemory< VECTOR > Class Template Reference
[Vector memory management]

Inheritance diagram for PrimitiveVectorMemory< VECTOR >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PrimitiveVectorMemory ()
virtual VECTOR * alloc ()
virtual void free (const VECTOR *const v)

Detailed Description

template<class VECTOR = ::Vector<double>>
class PrimitiveVectorMemory< VECTOR >

Simple memory management. See the documentation of the base class for a description of its purpose.

This class allocates and deletes vectors as needed from the global heap, i.e. performs no specially adapted actions for memory management.


Constructor & Destructor Documentation

template<class VECTOR = ::Vector<double>>
PrimitiveVectorMemory< VECTOR >::PrimitiveVectorMemory (  )  [inline]

Constructor.


Member Function Documentation

template<class VECTOR = ::Vector<double>>
virtual VECTOR* PrimitiveVectorMemory< VECTOR >::alloc (  )  [inline, virtual]

Return a pointer to a new vector. The number of elements or their subdivision into blocks (if applicable) is unspecified and users of this function should reset vectors to their proper size. The same holds for the contents of vectors: they are unspecified.

For the present class, calling this function will allocate a new vector on the heap and returning a pointer to it.

Implements VectorMemory< VECTOR >.

template<class VECTOR = ::Vector<double>>
virtual void PrimitiveVectorMemory< VECTOR >::free ( const VECTOR *const   v  )  [inline, virtual]

Return a vector and indicate that it is not going to be used any further by the instance that called alloc() to get a pointer to it.

For the present class, this means that the vector is returned to the global heap.

Implements VectorMemory< VECTOR >.


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

deal.II documentation generated on Mon Nov 23 22:58:01 2009 by doxygen 1.6.1