Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Static Public Attributes | Private Types | List of all members
Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static > Struct Template Reference

Implementation of Teuchos::SerializationTraits for all Vector types. More...

#include <Sacado_MP_ScalarTraitsImp.hpp>

Inheritance diagram for Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >:
Inheritance graph
[legend]

Static Public Attributes

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

Private Types

typedef Sacado::ValueType< VecType >::type ValueT
 Value type of Vec type.
 
typedef Teuchos::DefaultSerializer< Ordinal, ValueTDS
 Default serializer for values.
 
typedef DS::DefaultSerializerType ValueSerializer
 Default serializer type for values.
 
typedef SerializationImp< Ordinal, VecType, ValueSerializerImp
 Implementation.
 

Indirect serialization functions (always defined and supported)

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

Detailed Description

template<typename Ordinal, typename VecType, bool is_static = false>
struct Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >

Implementation of Teuchos::SerializationTraits for all Vector types.

Definition at line 440 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Typedef Documentation

◆ ValueT

template<typename Ordinal , typename VecType , bool is_static = false>
typedef Sacado::ValueType<VecType>::type Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::ValueT
private

Value type of Vec type.

Definition at line 445 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ DS

template<typename Ordinal , typename VecType , bool is_static = false>
typedef Teuchos::DefaultSerializer<Ordinal,ValueT> Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::DS
private

Default serializer for values.

Definition at line 448 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ ValueSerializer

template<typename Ordinal , typename VecType , bool is_static = false>
typedef DS::DefaultSerializerType Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::ValueSerializer
private

Default serializer type for values.

Definition at line 451 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ Imp

template<typename Ordinal , typename VecType , bool is_static = false>
typedef SerializationImp<Ordinal,VecType,ValueSerializer> Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::Imp
private

Implementation.

Definition at line 454 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Function Documentation

◆ fromCountToIndirectBytes()

template<typename Ordinal , typename VecType , bool is_static = false>
static Ordinal Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::fromCountToIndirectBytes ( const Ordinal count,
const VecType buffer[] )
inlinestatic

Return the number of bytes for count objects.

Definition at line 466 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ serialize()

template<typename Ordinal , typename VecType , bool is_static = false>
static void Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::serialize ( const Ordinal count,
const VecType buffer[],
const Ordinal bytes,
char charBuffer[] )
inlinestatic

Serialize to an indirect char[] buffer.

Definition at line 473 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ fromIndirectBytesToCount()

template<typename Ordinal , typename VecType , bool is_static = false>
static Ordinal Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::fromIndirectBytesToCount ( const Ordinal bytes,
const char charBuffer[] )
inlinestatic

Return the number of objects for bytes of storage.

Definition at line 482 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ deserialize()

template<typename Ordinal , typename VecType , bool is_static = false>
static void Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::deserialize ( const Ordinal bytes,
const char charBuffer[],
const Ordinal count,
VecType buffer[] )
inlinestatic

Deserialize from an indirect char[] buffer.

Definition at line 489 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Data Documentation

◆ supportsDirectSerialization

template<typename Ordinal , typename VecType , bool is_static = false>
const bool Sacado::MP::SerializationTraitsImp< Ordinal, VecType, is_static >::supportsDirectSerialization
static
Initial value:
=
Imp::supportsDirectSerialization

Whether the type T supports direct serialization.

Definition at line 459 of file Sacado_MP_ScalarTraitsImp.hpp.


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