Public Member Functions | Public Attributes

GrowingVectorMemory< VECTOR >::Pool Struct Reference

List of all members.

Public Member Functions

 Pool ()
 ~Pool ()
void initialize (const unsigned int 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 341 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 unsigned int  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 364 of file vector_memory.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

deal.II documentation generated on Fri Feb 3 2012 06:04:09 by doxygen 1.7.2