Stokhos Development
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes
Stokhos::LocalStorage< ordinal_t, value_t, 4, node_t > Class Template Reference

Statically allocated storage class. More...

#include <Stokhos_LocalStorage.hpp>

List of all members.

Classes

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

Public Types

typedef ordinal_t ordinal_type
typedef value_t value_type
typedef node_t node_type
typedef value_type & reference
typedef const value_type & const_reference
typedef value_type * pointer
typedef const value_type * const_pointer

Public Member Functions

KOKKOSARRAY_INLINE_FUNCTION LocalStorage (const ordinal_type &sz, const value_type &x=value_type(0.0))
 Constructor.
KOKKOSARRAY_INLINE_FUNCTION void init (const_reference v)
 Default copy constructor.
KOKKOSARRAY_INLINE_FUNCTION void init (const_pointer v, const ordinal_type &sz=0)
 Initialize values to an array of values.
KOKKOSARRAY_INLINE_FUNCTION void load (pointer v)
 Load values to an array of values.
KOKKOSARRAY_INLINE_FUNCTION void resize (const ordinal_type &sz)
 Resize to new size (values are preserved)
KOKKOSARRAY_INLINE_FUNCTION void shallowReset (pointer v, const ordinal_type &sz, const ordinal_type &stride, bool owned)
 Reset storage to given array, size, and stride.
KOKKOSARRAY_INLINE_FUNCTION
const_reference 
operator[] (const ordinal_type &i) const
 Coefficient access.
KOKKOSARRAY_INLINE_FUNCTION
reference 
operator[] (const ordinal_type &i)
 Coefficient access.
template<int i>
KOKKOSARRAY_INLINE_FUNCTION
reference 
getCoeff ()
template<int i>
KOKKOSARRAY_INLINE_FUNCTION
const_reference 
getCoeff () const
KOKKOSARRAY_INLINE_FUNCTION
const_pointer 
coeff () const
 Get coefficients.
KOKKOSARRAY_INLINE_FUNCTION pointer coeff ()
 Get coefficients.

Static Public Member Functions

static
KOKKOSARRAY_INLINE_FUNCTION
ordinal_type 
size ()
 Return size.

Static Public Attributes

static const int Num = 4
static const bool is_static = true
static const int static_size = Num
static const bool supports_reset = false

Detailed Description

template<typename ordinal_t, typename value_t, typename node_t>
class Stokhos::LocalStorage< ordinal_t, value_t, 4, node_t >

Statically allocated storage class.


Member Function Documentation

template<typename ordinal_t , typename value_t , typename node_t >
KOKKOSARRAY_INLINE_FUNCTION void Stokhos::LocalStorage< ordinal_t, value_t, 4, node_t >::init ( const_reference  v) [inline]

Default copy constructor.

Default destructor Default assignment operator Initialize values to a constant value


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator