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

Dynamically allocated storage class with striding. More...

#include <Stokhos_DynamicThreadedStorage.hpp>

List of all members.

Classes

struct  apply
 Turn DynamicThreadedStorage 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
typedef
Stokhos::DynArrayTraits
< value_type, node_type > 
ds

Public Member Functions

 DynamicThreadedStorage (const ordinal_type &sz, const value_type &x=value_type(0.0))
 Constructor.
 DynamicThreadedStorage (const DynamicThreadedStorage &s)
 Copy constructor.
 ~DynamicThreadedStorage ()
 Destructor.
DynamicThreadedStorageoperator= (const DynamicThreadedStorage &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)
void shallowReset (pointer v, const ordinal_type &sz, const ordinal_type &stride, bool owned)
 Reset storage to given array, size, and stride.
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.

Static Public Member Functions

static ordinal_type size ()
 Return size.

Detailed Description

template<typename ordinal_t, typename value_t, typename node_t>
class Stokhos::DynamicThreadedStorage< ordinal_t, value_t, node_t >

Dynamically allocated storage class with striding.


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