Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Static Public Attributes | Private Types | List of all members
Sacado::MP::SerializationImp< Ordinal, VecType, Serializer > Struct Template Reference

Serialization implementation for all Vector types. More...

#include <Sacado_MP_ScalarTraitsImp.hpp>

Static Public Attributes

static const bool supportsDirectSerialization = false
 Whether the type T supports direct serialization. More...
 

Private Types

typedef Sacado::ValueType
< VecType >::type 
ValueT
 Value type. More...
 
typedef
Teuchos::SerializationTraits
< Ordinal, int > 
iSerT
 How to serialize ints. More...
 
typedef
Teuchos::SerializationTraits
< Ordinal, Ordinal
oSerT
 How to serialize ordinals. More...
 

Indirect serialization functions (always defined and supported)

static Ordinal fromCountToIndirectBytes (const Serializer &vs, const Ordinal count, const VecType buffer[], const Ordinal sz=0)
 Return the number of bytes for count objects. More...
 
static void serialize (const Serializer &vs, const Ordinal count, const VecType buffer[], const Ordinal bytes, char charBuffer[], const Ordinal sz=0)
 Serialize to an indirect char[] buffer. More...
 
static Ordinal fromIndirectBytesToCount (const Serializer &vs, const Ordinal bytes, const char charBuffer[], const Ordinal sz=0)
 Return the number of objects for bytes of storage. More...
 
static void deserialize (const Serializer &vs, const Ordinal bytes, const char charBuffer[], const Ordinal count, VecType buffer[], const Ordinal sz=0)
 Deserialize from an indirect char[] buffer. More...
 

Detailed Description

template<typename Ordinal, typename VecType, typename Serializer>
struct Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >

Serialization implementation for all Vector types.

Definition at line 288 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Typedef Documentation

template<typename Ordinal , typename VecType , typename Serializer >
typedef Sacado::ValueType<VecType>::type Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::ValueT
private

Value type.

Definition at line 293 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal , typename VecType , typename Serializer >
typedef Teuchos::SerializationTraits<Ordinal,int> Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::iSerT
private

How to serialize ints.

Definition at line 296 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal , typename VecType , typename Serializer >
typedef Teuchos::SerializationTraits<Ordinal,Ordinal> Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::oSerT
private

How to serialize ordinals.

Definition at line 299 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Function Documentation

template<typename Ordinal , typename VecType , typename Serializer >
static Ordinal Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::fromCountToIndirectBytes ( const Serializer &  vs,
const Ordinal  count,
const VecType  buffer[],
const Ordinal  sz = 0 
)
inlinestatic

Return the number of bytes for count objects.

Definition at line 310 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal , typename VecType , typename Serializer >
static void Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::serialize ( const Serializer &  vs,
const Ordinal  count,
const VecType  buffer[],
const Ordinal  bytes,
char  charBuffer[],
const Ordinal  sz = 0 
)
inlinestatic

Serialize to an indirect char[] buffer.

Definition at line 341 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal , typename VecType , typename Serializer >
static Ordinal Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::fromIndirectBytesToCount ( const Serializer &  vs,
const Ordinal  bytes,
const char  charBuffer[],
const Ordinal  sz = 0 
)
inlinestatic

Return the number of objects for bytes of storage.

Definition at line 380 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal , typename VecType , typename Serializer >
static void Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::deserialize ( const Serializer &  vs,
const Ordinal  bytes,
const char  charBuffer[],
const Ordinal  count,
VecType  buffer[],
const Ordinal  sz = 0 
)
inlinestatic

Deserialize from an indirect char[] buffer.

Definition at line 407 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Data Documentation

template<typename Ordinal , typename VecType , typename Serializer >
const bool Sacado::MP::SerializationImp< Ordinal, VecType, Serializer >::supportsDirectSerialization = false
static

Whether the type T supports direct serialization.

Definition at line 304 of file Sacado_MP_ScalarTraitsImp.hpp.


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