Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num > Class Template Reference

Statically allocated storage class. More...

#include <Stokhos_StaticFixedStandardStorage.hpp>

Classes

struct  apply
 Turn StaticFixedStandardStorage into a meta-function class usable with mpl::apply. More...
 

Public Types

typedef value_type & reference
 
typedef const value_type & const_reference
 
typedef value_type * pointer
 
typedef const value_type * const_pointer
 
typedef Sacado::ss_array
< value_type > 
ss
 

Public Member Functions

 StaticFixedStandardStorage (const ordinal_type &sz, const value_type &x=value_type(0.0))
 Constructor. More...
 
 StaticFixedStandardStorage (const StaticFixedStandardStorage &s)
 Copy constructor. More...
 
 ~StaticFixedStandardStorage ()
 Destructor. More...
 
StaticFixedStandardStorageoperator= (const StaticFixedStandardStorage &s)
 Assignment operator. More...
 
void init (const_reference v)
 Initialize values to a constant value. More...
 
void init (const_pointer v, const ordinal_type &sz_=0)
 Initialize values to an array of values. More...
 
void load (pointer v)
 Load values to an array of values. More...
 
void resize (const ordinal_type &sz)
 Resize to new size (values are preserved) More...
 
const_reference operator[] (const ordinal_type &i) const
 Coefficient access (avoid if possible) More...
 
reference operator[] (const ordinal_type &i)
 Coefficient access (avoid if possible) More...
 
const_pointer coeff () const
 Get coefficients. More...
 
pointer coeff ()
 Get coefficients. More...
 

Static Public Member Functions

static ordinal_type size ()
 Return size. More...
 

Private Attributes

value_type coeff_ [Num]
 Coefficient values. More...
 

Detailed Description

template<typename ordinal_type, typename value_type, int Num>
class Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >

Statically allocated storage class.

Definition at line 54 of file Stokhos_StaticFixedStandardStorage.hpp.

Member Typedef Documentation

template<typename ordinal_type , typename value_type , int Num>
typedef value_type& Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::reference

Definition at line 57 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
typedef const value_type& Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::const_reference

Definition at line 58 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
typedef value_type* Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::pointer

Definition at line 59 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
typedef const value_type* Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::const_pointer

Definition at line 60 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
typedef Sacado::ss_array<value_type> Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::ss

Definition at line 61 of file Stokhos_StaticFixedStandardStorage.hpp.

Constructor & Destructor Documentation

template<typename ordinal_type , typename value_type , int Num>
Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::StaticFixedStandardStorage ( const ordinal_type &  sz,
const value_type &  x = value_type(0.0) 
)
inline

Constructor.

Definition at line 70 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::StaticFixedStandardStorage ( const StaticFixedStandardStorage< ordinal_type, value_type, Num > &  s)
inline

Copy constructor.

Definition at line 76 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::~StaticFixedStandardStorage ( )
inline

Destructor.

Definition at line 81 of file Stokhos_StaticFixedStandardStorage.hpp.

Member Function Documentation

template<typename ordinal_type , typename value_type , int Num>
StaticFixedStandardStorage& Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::operator= ( const StaticFixedStandardStorage< ordinal_type, value_type, Num > &  s)
inline

Assignment operator.

Definition at line 84 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
void Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::init ( const_reference  v)
inline

Initialize values to a constant value.

Definition at line 90 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
void Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::init ( const_pointer  v,
const ordinal_type &  sz_ = 0 
)
inline

Initialize values to an array of values.

Definition at line 95 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
void Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::load ( pointer  v)
inline

Load values to an array of values.

Definition at line 103 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
void Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::resize ( const ordinal_type &  sz)
inline

Resize to new size (values are preserved)

Definition at line 108 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
static ordinal_type Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::size ( )
inlinestatic

Return size.

Definition at line 111 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
const_reference Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::operator[] ( const ordinal_type &  i) const
inline

Coefficient access (avoid if possible)

Definition at line 114 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
reference Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::operator[] ( const ordinal_type &  i)
inline

Coefficient access (avoid if possible)

Definition at line 119 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
const_pointer Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::coeff ( ) const
inline

Get coefficients.

Definition at line 122 of file Stokhos_StaticFixedStandardStorage.hpp.

template<typename ordinal_type , typename value_type , int Num>
pointer Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::coeff ( )
inline

Get coefficients.

Definition at line 125 of file Stokhos_StaticFixedStandardStorage.hpp.

Member Data Documentation

template<typename ordinal_type , typename value_type , int Num>
value_type Stokhos::StaticFixedStandardStorage< ordinal_type, value_type, Num >::coeff_[Num]
private

Coefficient values.

Definition at line 130 of file Stokhos_StaticFixedStandardStorage.hpp.


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