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

Implementation of Teuchos::SerializationTraits for all static Vec types. More...

#include <Sacado_MP_ScalarTraitsImp.hpp>

Public Types

typedef Sacado::ValueType< VecType >::type ValueT
 
typedef Teuchos::SerializationTraits< Ordinal, ValueTvSerT
 
typedef Teuchos::DirectSerializationTraits< Ordinal, VecType > DSerT
 
typedef Sacado::MP::SerializationTraitsImp< Ordinal, VecType > STI
 

Static Public Attributes

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

Direct serialization functions (not defined if supportsDirectSerialization==false)

static Ordinal fromCountToDirectBytes (const Ordinal count)
 Return the number of bytes for count objects.
 
static char * convertToCharPtr (VecType *ptr)
 Convert the pointer type to char*.
 
static const char * convertToCharPtr (const VecType *ptr)
 Convert the pointer type to const char*.
 
static Ordinal fromDirectBytesToCount (const Ordinal bytes)
 Return the number of objects for bytes of storage.
 
static VecType * convertFromCharPtr (char *ptr)
 Convert the pointer type from char*.
 
static const VecType * convertFromCharPtr (const char *ptr)
 Convert the pointer type from char*.
 

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>
struct Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >

Implementation of Teuchos::SerializationTraits for all static Vec types.

Definition at line 503 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Typedef Documentation

◆ ValueT

template<typename Ordinal , typename VecType >
typedef Sacado::ValueType<VecType>::type Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::ValueT

Definition at line 504 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ vSerT

template<typename Ordinal , typename VecType >
typedef Teuchos::SerializationTraits<Ordinal,ValueT> Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::vSerT

Definition at line 505 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ DSerT

template<typename Ordinal , typename VecType >
typedef Teuchos::DirectSerializationTraits<Ordinal,VecType> Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::DSerT

Definition at line 506 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ STI

template<typename Ordinal , typename VecType >
typedef Sacado::MP::SerializationTraitsImp<Ordinal,VecType> Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::STI

Definition at line 507 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Function Documentation

◆ fromCountToDirectBytes()

template<typename Ordinal , typename VecType >
static Ordinal Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::fromCountToDirectBytes ( const Ordinal count)
inlinestatic

Return the number of bytes for count objects.

Definition at line 517 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ convertToCharPtr() [1/2]

template<typename Ordinal , typename VecType >
static char * Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::convertToCharPtr ( VecType * ptr)
inlinestatic

Convert the pointer type to char*.

Definition at line 522 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ convertToCharPtr() [2/2]

template<typename Ordinal , typename VecType >
static const char * Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::convertToCharPtr ( const VecType * ptr)
inlinestatic

Convert the pointer type to const char*.

Definition at line 527 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ fromDirectBytesToCount()

template<typename Ordinal , typename VecType >
static Ordinal Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::fromDirectBytesToCount ( const Ordinal bytes)
inlinestatic

Return the number of objects for bytes of storage.

Definition at line 532 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ convertFromCharPtr() [1/2]

template<typename Ordinal , typename VecType >
static VecType * Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::convertFromCharPtr ( char * ptr)
inlinestatic

Convert the pointer type from char*.

Definition at line 537 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ convertFromCharPtr() [2/2]

template<typename Ordinal , typename VecType >
static const VecType * Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::convertFromCharPtr ( const char * ptr)
inlinestatic

Convert the pointer type from char*.

Definition at line 542 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ fromCountToIndirectBytes()

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

Return the number of bytes for count objects.

Definition at line 552 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ serialize()

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

Serialize to an indirect char[] buffer.

Definition at line 561 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ fromIndirectBytesToCount()

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

Return the number of objects for bytes of storage.

Definition at line 572 of file Sacado_MP_ScalarTraitsImp.hpp.

◆ deserialize()

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

Deserialize from an indirect char[] buffer.

Definition at line 581 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Data Documentation

◆ supportsDirectSerialization

template<typename Ordinal , typename VecType >
const bool Sacado::MP::SerializationTraitsImp< Ordinal, VecType, true >::supportsDirectSerialization
static
Initial value:
=
vSerT::supportsDirectSerialization

Whether the type T supports direct serialization.

Definition at line 510 of file Sacado_MP_ScalarTraitsImp.hpp.


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