Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Member Functions | List of all members
Sacado::Fad::mp_array< T, isScalar > Struct Template Reference

Dynamic array allocation class that works for any type. More...

#include <Sacado_Fad_MemPoolStorage.hpp>

Static Public Member Functions

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

Detailed Description

template<typename T, bool isScalar = IsScalarType<T>::value>
struct Sacado::Fad::mp_array< T, isScalar >

Dynamic array allocation class that works for any type.

Definition at line 66 of file Sacado_Fad_MemPoolStorage.hpp.

Member Function Documentation

template<typename T , bool isScalar = IsScalarType<T>::value>
static T* Sacado::Fad::mp_array< T, isScalar >::get ( int  sz,
MemPool pool 
)
inlinestatic

Get memory for new array of length sz.

Definition at line 69 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static T* Sacado::Fad::mp_array< T, isScalar >::get_and_fill ( int  sz,
MemPool pool 
)
inlinestatic

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

Definition at line 82 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static T* Sacado::Fad::mp_array< T, isScalar >::get_and_fill ( const T src,
int  sz,
MemPool pool 
)
inlinestatic

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

Definition at line 98 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::Fad::mp_array< T, isScalar >::copy ( const T src,
T dest,
int  sz 
)
inlinestatic

Copy array from src to dest of length sz.

Definition at line 111 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::Fad::mp_array< T, isScalar >::zero ( T dest,
int  sz 
)
inlinestatic

Zero out array dest of length sz.

Definition at line 117 of file Sacado_Fad_MemPoolStorage.hpp.

template<typename T , bool isScalar = IsScalarType<T>::value>
static void Sacado::Fad::mp_array< T, isScalar >::destroy_and_release ( T m,
int  sz,
MemPool pool 
)
inlinestatic

Destroy array elements and release memory.

Definition at line 123 of file Sacado_Fad_MemPoolStorage.hpp.


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