Stokhos  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Classes | Public Types | Public Member Functions | List of all members
Stokhos::StaticStandardStorage< ordinal_type, value_type, Num > Class Template Reference

Statically allocated storage class. More...

#include <Stokhos_StaticStandardStorage.hpp>

Classes

struct  apply
 Turn StaticStandardStorage 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

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

Detailed Description

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

Statically allocated storage class.


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