Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
GrowingVectorMemory< VECTOR >::Pool Struct Reference

Public Member Functions

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

Public Attributes

std::vector< entry_type > * data
 

Detailed Description

template<class VECTOR = ::Vector<double>>
struct GrowingVectorMemory< VECTOR >::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 351 of file vector_memory.h.

Constructor & Destructor Documentation

template<class VECTOR = ::Vector<double>>
GrowingVectorMemory< VECTOR >::Pool::Pool ( )

Standard constructor creating an empty pool

template<class VECTOR = ::Vector<double>>
GrowingVectorMemory< VECTOR >::Pool::~Pool ( )

Destructor. Frees memory and warns about memory leaks

Member Function Documentation

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

Create data vector; does nothing after first initialization

Member Data Documentation

template<class VECTOR = ::Vector<double>>
std::vector<entry_type>* GrowingVectorMemory< VECTOR >::Pool::data

Pointer to the storage object

Definition at line 374 of file vector_memory.h.


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