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

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

#include <Sacado_PCE_ScalarTraitsImp.hpp>

Inheritance diagram for Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >:
Inheritance graph
[legend]

Static Public Attributes

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

Private Types

typedef Sacado::ValueType< PCEType >::type ValueT
 
typedef Teuchos::SerializationTraits< Ordinal, ValueTvSerT
 
typedef Teuchos::SerializationTraits< Ordinal, int > iSerT
 
typedef Teuchos::SerializationTraits< Ordinal, OrdinaloSerT
 

Indirect serialization functions (always defined and supported)

static Ordinal fromCountToIndirectBytes (const Ordinal count, const PCEType buffer[])
 Return the number of bytes for count objects.
 
static void serialize (const Ordinal count, const PCEType 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, PCEType buffer[])
 Deserialize from an indirect char[] buffer.
 

Detailed Description

template<typename Ordinal, typename PCEType>
class Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >

Implementation of Teuchos::SerializationTraits for all PCE types.

Definition at line 240 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Typedef Documentation

◆ ValueT

template<typename Ordinal , typename PCEType >
typedef Sacado::ValueType<PCEType>::type Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >::ValueT
private

Definition at line 241 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ vSerT

template<typename Ordinal , typename PCEType >
typedef Teuchos::SerializationTraits<Ordinal,ValueT> Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >::vSerT
private

Definition at line 242 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ iSerT

template<typename Ordinal , typename PCEType >
typedef Teuchos::SerializationTraits<Ordinal,int> Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >::iSerT
private

Definition at line 243 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ oSerT

template<typename Ordinal , typename PCEType >
typedef Teuchos::SerializationTraits<Ordinal,Ordinal> Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >::oSerT
private

Definition at line 244 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Function Documentation

◆ fromCountToIndirectBytes()

template<typename Ordinal , typename PCEType >
static Ordinal Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >::fromCountToIndirectBytes ( const Ordinal count,
const PCEType buffer[] )
inlinestatic

Return the number of bytes for count objects.

Definition at line 255 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ serialize()

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

Serialize to an indirect char[] buffer.

Definition at line 269 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ fromIndirectBytesToCount()

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

Return the number of objects for bytes of storage.

Definition at line 291 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ deserialize()

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

Deserialize from an indirect char[] buffer.

Definition at line 316 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Data Documentation

◆ supportsDirectSerialization

template<typename Ordinal , typename PCEType >
const bool Sacado::PCE::SerializationTraitsImp< Ordinal, PCEType >::supportsDirectSerialization = false
static

Whether the type T supports direct serialization.

Definition at line 249 of file Sacado_PCE_ScalarTraitsImp.hpp.


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