Reference documentation for deal.II version 8.4.1
Public Member Functions | Private Attributes | List of all members
VectorMemory< VectorType >::Pointer Class Reference

#include <deal.II/lac/vector_memory.h>

Public Member Functions

 Pointer (VectorMemory< VectorType > &mem)
 
 ~Pointer ()
 
 operator VectorType * () const
 
VectorType & operator* () const
 
VectorType * operator-> () const
 

Private Attributes

SmartPointer< VectorMemory< VectorType >, Pointerpool
 
VectorType * v
 

Detailed Description

template<typename VectorType = ::Vector<double>>
class VectorMemory< VectorType >::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 118 of file vector_memory.h.

Constructor & Destructor Documentation

template<typename VectorType = ::Vector<double>>
VectorMemory< VectorType >::Pointer::Pointer ( VectorMemory< VectorType > &  mem)

Constructor, automatically allocating a vector from mem.

template<typename VectorType = ::Vector<double>>
VectorMemory< VectorType >::Pointer::~Pointer ( )

Destructor, automatically releasing the vector from the memory pool.

Member Function Documentation

template<typename VectorType = ::Vector<double>>
VectorMemory< VectorType >::Pointer::operator VectorType * ( ) const

Conversion to regular pointer.

template<typename VectorType = ::Vector<double>>
VectorType& VectorMemory< VectorType >::Pointer::operator* ( ) const

Dereferencing operator.

template<typename VectorType = ::Vector<double>>
VectorType* VectorMemory< VectorType >::Pointer::operator-> ( ) const

Dereferencing operator.

Member Data Documentation

template<typename VectorType = ::Vector<double>>
SmartPointer<VectorMemory<VectorType>,Pointer> VectorMemory< VectorType >::Pointer::pool
private

The memory pool used.

Definition at line 148 of file vector_memory.h.

template<typename VectorType = ::Vector<double>>
VectorType* VectorMemory< VectorType >::Pointer::v
private

The pointer to the vector.

Definition at line 152 of file vector_memory.h.


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