Sacado::Fad::MemPoolStorage< T > Class Template Reference

Derivative array storage class using dynamic memory allocation. More...

#include <Sacado_Fad_MemPoolStorage.hpp>

List of all members.

Public Member Functions

 MemPoolStorage (const T &x)
 Default constructor.
 MemPoolStorage (const int sz, const T &x)
 Constructor with size sz.
 MemPoolStorage (const MemPoolStorage &x)
 Copy constructor.
 ~MemPoolStorage ()
 Destructor.
MemPoolStorageoperator= (const MemPoolStorage &x)
 Assignment.
int size () const
 Returns number of derivative components.
void resize (int sz)
 Resize the derivative array to sz.
void zero ()
 Zero out derivative array.
const T & val () const
 Returns value.
T & val ()
 Returns value.
const T * dx () const
 Returns derivative array.
dx (int i) const
 Returns derivative component i with bounds checking.
T & fastAccessDx (int i)
 Returns derivative component i without bounds checking.
const T & fastAccessDx (int i) const
 Returns derivative component i without bounds checking.
template<>
Sacado::Fad::MemPooldefaultPool_
template<>
Sacado::Fad::MemPooldefaultPool_
template<>
Sacado::Fad::MemPooldefaultPool_
template<>
Sacado::Fad::MemPooldefaultPool_
template<>
Sacado::Fad::MemPooldefaultPool_
template<>
Sacado::Fad::MemPooldefaultPool_

Static Public Attributes

static MemPooldefaultPool_
 Default memory pool.

Protected Attributes

MemPoolmyPool_
 Memory pool.

Private Attributes

val_
 Value.
int sz_
 Derivative array size.
int len_
 Derivative array length.
T * dx_
 Derivative array.

Detailed Description

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

Derivative array storage class using dynamic memory allocation.

Definition at line 154 of file Sacado_Fad_MemPoolStorage.hpp.


Constructor & Destructor Documentation

template<typename T >
Sacado::Fad::MemPoolStorage< T >::MemPoolStorage ( const T &  x  )  [inline]

Default constructor.

Definition at line 159 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
Sacado::Fad::MemPoolStorage< T >::MemPoolStorage ( const int  sz,
const T &  x 
) [inline]

Constructor with size sz.

Initializes derivative array 0 of length sz

Definition at line 166 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
Sacado::Fad::MemPoolStorage< T >::MemPoolStorage ( const MemPoolStorage< T > &  x  )  [inline]

Copy constructor.

Definition at line 172 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
Sacado::Fad::MemPoolStorage< T >::~MemPoolStorage (  )  [inline]

Destructor.

Definition at line 178 of file Sacado_Fad_MemPoolStorage.hpp.


Member Function Documentation

template<typename T >
MemPoolStorage& Sacado::Fad::MemPoolStorage< T >::operator= ( const MemPoolStorage< T > &  x  )  [inline]

Assignment.

Definition at line 184 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
int Sacado::Fad::MemPoolStorage< T >::size (  )  const [inline]

Returns number of derivative components.

Definition at line 205 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
void Sacado::Fad::MemPoolStorage< T >::resize ( int  sz  )  [inline]

Resize the derivative array to sz.

Definition at line 208 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
void Sacado::Fad::MemPoolStorage< T >::zero (  )  [inline]

Zero out derivative array.

Definition at line 220 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
const T& Sacado::Fad::MemPoolStorage< T >::val (  )  const [inline]

Returns value.

Definition at line 225 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
T& Sacado::Fad::MemPoolStorage< T >::val (  )  [inline]

Returns value.

Definition at line 228 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
const T* Sacado::Fad::MemPoolStorage< T >::dx (  )  const [inline]

Returns derivative array.

Definition at line 231 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
T Sacado::Fad::MemPoolStorage< T >::dx ( int  i  )  const [inline]

Returns derivative component i with bounds checking.

Definition at line 234 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
T& Sacado::Fad::MemPoolStorage< T >::fastAccessDx ( int  i  )  [inline]

Returns derivative component i without bounds checking.

Definition at line 237 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
const T& Sacado::Fad::MemPoolStorage< T >::fastAccessDx ( int  i  )  const [inline]

Returns derivative component i without bounds checking.

Definition at line 240 of file Sacado_Fad_MemPoolStorage.hpp.

template<>
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ (  )  [inline]

Definition at line 49 of file dmfad_example.cpp.

template<>
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ (  )  [inline]

Definition at line 46 of file fad_expr.cpp.

template<>
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ (  )  [inline]

Definition at line 98 of file fad_fe_jac_fill.cpp.

template<>
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ (  )  [inline]

Definition at line 46 of file fad_lj_grad.cpp.

template<>
Sacado::Fad::MemPool * Sacado::Fad::MemPoolStorage< double >::defaultPool_ (  )  [inline]

Definition at line 44 of file TraitsTests.cpp.

Definition at line 46 of file TraitsTests.cpp.


Member Data Documentation

template<typename T >
T Sacado::Fad::MemPoolStorage< T >::val_ [private]

Value.

Definition at line 245 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
int Sacado::Fad::MemPoolStorage< T >::sz_ [private]

Derivative array size.

Definition at line 248 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
int Sacado::Fad::MemPoolStorage< T >::len_ [private]

Derivative array length.

Definition at line 251 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
T* Sacado::Fad::MemPoolStorage< T >::dx_ [private]

Derivative array.

Definition at line 254 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
MemPool* Sacado::Fad::MemPoolStorage< T >::defaultPool_ [static]

Default memory pool.

Definition at line 259 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
MemPool* Sacado::Fad::MemPoolStorage< T >::myPool_ [protected]

Memory pool.

Definition at line 264 of file Sacado_Fad_MemPoolStorage.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:19:44 2011 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.6.3