Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | Private Attributes | List of all members
VectorMemory< VECTOR >::Pointer Class Reference

#include <vector_memory.h>

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 129 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 163 of file vector_memory.h.

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

The pointer to the vector.

Definition at line 167 of file vector_memory.h.


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