Reference documentation for deal.II version 8.4.1
Public Member Functions | Public Attributes | List of all members
GrowingVectorMemory< VectorType >::Pool Struct Reference

Public Member Functions

 Pool ()
 
 ~Pool ()
 
void initialize (const size_type size)
 

Public Attributes

std::vector< entry_type > * data
 

Detailed Description

template<typename VectorType = ::Vector<double>>
struct GrowingVectorMemory< VectorType >::Pool

The class providing the actual storage for the memory pool.

This is where the actual storage for GrowingVectorMemory is provided. Only one of these pools is used for each vector type, thus allocating all vectors from the same storage.

Author
Guido Kanschat, 2007

Definition at line 296 of file vector_memory.h.

Constructor & Destructor Documentation

template<typename VectorType = ::Vector<double>>
GrowingVectorMemory< VectorType >::Pool::Pool ( )

Standard constructor creating an empty pool

template<typename VectorType = ::Vector<double>>
GrowingVectorMemory< VectorType >::Pool::~Pool ( )

Destructor. Frees memory and warns about memory leaks

Member Function Documentation

template<typename VectorType = ::Vector<double>>
void GrowingVectorMemory< VectorType >::Pool::initialize ( const size_type  size)

Create data vector; does nothing after first initialization

Member Data Documentation

template<typename VectorType = ::Vector<double>>
std::vector<entry_type>* GrowingVectorMemory< VectorType >::Pool::data

Pointer to the storage object

Definition at line 313 of file vector_memory.h.


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