Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Attributes | Private Member Functions | List of all members
Sacado::Fad::MemPoolManager< T > Class Template Reference

Class to manage memory pools for different Fad dimensions. More...

#include <Sacado_Fad_MemPoolManager.hpp>

Inheritance diagram for Sacado::Fad::MemPoolManager< T >:
Inheritance graph
[legend]

Public Member Functions

 MemPoolManager (unsigned int nfad)
 Constructor. More...
 
 ~MemPoolManager ()
 Destructor. More...
 
MemPoolgetMemoryPool (unsigned int dim)
 Get memory pool for supplied dimension dim. More...
 

Protected Types

typedef std::map< unsigned int,
MemPool * > 
MapType
 Typename of memory pool map. More...
 

Protected Attributes

unsigned int num_fad
 Number of Fad objects per chunk. More...
 
MapType poolMap
 Map of memory pools. More...
 

Private Member Functions

 MemPoolManager (const MemPoolManager &)
 Private to prohibit copying. More...
 
MemPoolManageroperator= (const MemPoolManager &)
 Private to prohibit copying. More...
 

Detailed Description

template<typename T>
class Sacado::Fad::MemPoolManager< T >

Class to manage memory pools for different Fad dimensions.

Definition at line 45 of file Sacado_Fad_MemPoolManager.hpp.

Member Typedef Documentation

template<typename T>
typedef std::map<unsigned int, MemPool*> Sacado::Fad::MemPoolManager< T >::MapType
protected

Typename of memory pool map.

Definition at line 72 of file Sacado_Fad_MemPoolManager.hpp.

Constructor & Destructor Documentation

template<typename T >
Sacado::Fad::MemPoolManager< T >::MemPoolManager ( unsigned int  nfad)
inline

Constructor.

Definition at line 34 of file Sacado_Fad_MemPoolManagerImp.hpp.

template<typename T >
Sacado::Fad::MemPoolManager< T >::~MemPoolManager ( )
inline

Destructor.

Definition at line 42 of file Sacado_Fad_MemPoolManagerImp.hpp.

template<typename T>
Sacado::Fad::MemPoolManager< T >::MemPoolManager ( const MemPoolManager< T > &  )
private

Private to prohibit copying.

Member Function Documentation

template<typename T >
Sacado::Fad::MemPool * Sacado::Fad::MemPoolManager< T >::getMemoryPool ( unsigned int  dim)
inline

Get memory pool for supplied dimension dim.

Definition at line 51 of file Sacado_Fad_MemPoolManagerImp.hpp.

template<typename T>
MemPoolManager& Sacado::Fad::MemPoolManager< T >::operator= ( const MemPoolManager< T > &  )
private

Private to prohibit copying.

Member Data Documentation

template<typename T>
unsigned int Sacado::Fad::MemPoolManager< T >::num_fad
protected

Number of Fad objects per chunk.

Definition at line 69 of file Sacado_Fad_MemPoolManager.hpp.

template<typename T>
MapType Sacado::Fad::MemPoolManager< T >::poolMap
protected

Map of memory pools.

Definition at line 75 of file Sacado_Fad_MemPoolManager.hpp.


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