Sacado Package Browser (Single Doxygen Collection) Version of the Day
Static Public Member Functions
Sacado::Fad::mp_array< T, true > Struct Template Reference

Dynamic array allocation class that is specialized for scalar i.e., fundamental or built-in types (float, double, etc...). More...

#include <Sacado_Fad_MemPoolStorage.hpp>

List of all members.

Static Public Member Functions

static T * get_and_fill (int sz, MemPool *pool)
 Get memory for new array of length sz and fill with zeros.
static T * get_and_fill (const T *src, int sz, MemPool *pool)
 Get memory for new array of length sz and fill with entries from src.
static void copy (const T *src, T *dest, int sz)
 Copy array from src to dest of length sz.
static void zero (T *dest, int sz)
 Zero out array dest of length sz.
static void destroy_and_release (T *m, int sz, MemPool *pool)
 Destroy array elements and release memory.

Detailed Description

template<typename T>
struct Sacado::Fad::mp_array< T, true >

Dynamic array allocation class that is specialized for scalar i.e., fundamental or built-in types (float, double, etc...).

Definition at line 106 of file Sacado_Fad_MemPoolStorage.hpp.


Member Function Documentation

template<typename T >
static T* Sacado::Fad::mp_array< T, true >::get_and_fill ( int  sz,
MemPool pool 
) [inline, static]

Get memory for new array of length sz and fill with zeros.

Definition at line 109 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
static T* Sacado::Fad::mp_array< T, true >::get_and_fill ( const T *  src,
int  sz,
MemPool pool 
) [inline, static]

Get memory for new array of length sz and fill with entries from src.

Definition at line 123 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
static void Sacado::Fad::mp_array< T, true >::copy ( const T *  src,
T *  dest,
int  sz 
) [inline, static]

Copy array from src to dest of length sz.

Definition at line 136 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
static void Sacado::Fad::mp_array< T, true >::zero ( T *  dest,
int  sz 
) [inline, static]

Zero out array dest of length sz.

Definition at line 141 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T >
static void Sacado::Fad::mp_array< T, true >::destroy_and_release ( T *  m,
int  sz,
MemPool pool 
) [inline, static]

Destroy array elements and release memory.

Definition at line 147 of file Sacado_Fad_MemPoolStorage.hpp.


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