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

Serializer object for all PCE types. More...

#include <Sacado_PCE_ScalarTraitsImp.hpp>

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

Public Types

typedef ValueSerializer value_serializer_type
 Typename of value serializer.
 
typedef PCEType::expansion_type expansion_type
 Typename of expansion.
 

Public Member Functions

 SerializerImp (const Teuchos::RCP< expansion_type > &expansion_, const Teuchos::RCP< const ValueSerializer > &vs_)
 
Teuchos::RCP< expansion_typegetSerializerExpansion () const
 Return specified serializer size.
 
Teuchos::RCP< const value_serializer_typegetValueSerializer () const
 Get nested value serializer.
 

Static Public Attributes

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

Protected Types

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

Protected Attributes

Teuchos::RCP< expansion_typeexpansion
 
Teuchos::RCP< const ValueSerializer > vs
 
int sz
 

Indirect serialization functions (always defined and supported)

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

Detailed Description

template<typename Ordinal, typename PCEType, typename ValueSerializer>
class Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >

Serializer object for all PCE types.

Definition at line 351 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Typedef Documentation

◆ value_serializer_type

template<typename Ordinal , typename PCEType , typename ValueSerializer >
typedef ValueSerializer Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::value_serializer_type

Typename of value serializer.

Definition at line 356 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ expansion_type

template<typename Ordinal , typename PCEType , typename ValueSerializer >
typedef PCEType::expansion_type Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::expansion_type

Typename of expansion.

Definition at line 359 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ ValueT

template<typename Ordinal , typename PCEType , typename ValueSerializer >
typedef Sacado::ValueType<PCEType>::type Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::ValueT
protected

Definition at line 363 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ iSerT

template<typename Ordinal , typename PCEType , typename ValueSerializer >
typedef Teuchos::SerializationTraits<Ordinal,int> Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::iSerT
protected

Definition at line 364 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ oSerT

template<typename Ordinal , typename PCEType , typename ValueSerializer >
typedef Teuchos::SerializationTraits<Ordinal,Ordinal> Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::oSerT
protected

Definition at line 365 of file Sacado_PCE_ScalarTraitsImp.hpp.

Constructor & Destructor Documentation

◆ SerializerImp()

template<typename Ordinal , typename PCEType , typename ValueSerializer >
Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::SerializerImp ( const Teuchos::RCP< expansion_type > &  expansion_,
const Teuchos::RCP< const ValueSerializer > &  vs_ 
)
inline

Definition at line 376 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Function Documentation

◆ getSerializerExpansion()

template<typename Ordinal , typename PCEType , typename ValueSerializer >
Teuchos::RCP< expansion_type > Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::getSerializerExpansion ( ) const
inline

Return specified serializer size.

Definition at line 381 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ getValueSerializer()

template<typename Ordinal , typename PCEType , typename ValueSerializer >
Teuchos::RCP< const value_serializer_type > Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::getValueSerializer ( ) const
inline

Get nested value serializer.

Definition at line 385 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ fromCountToIndirectBytes()

template<typename Ordinal , typename PCEType , typename ValueSerializer >
Ordinal Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::fromCountToIndirectBytes ( const Ordinal  count,
const PCEType  buffer[] 
) const
inline

Return the number of bytes for count objects.

Definition at line 392 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ serialize()

template<typename Ordinal , typename PCEType , typename ValueSerializer >
void Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::serialize ( const Ordinal  count,
const PCEType  buffer[],
const Ordinal  bytes,
char  charBuffer[] 
) const
inline

Serialize to an indirect char[] buffer.

Definition at line 419 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ fromIndirectBytesToCount()

template<typename Ordinal , typename PCEType , typename ValueSerializer >
Ordinal Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::fromIndirectBytesToCount ( const Ordinal  bytes,
const char  charBuffer[] 
) const
inline

Return the number of objects for bytes of storage.

Definition at line 454 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ deserialize()

template<typename Ordinal , typename PCEType , typename ValueSerializer >
void Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::deserialize ( const Ordinal  bytes,
const char  charBuffer[],
const Ordinal  count,
PCEType  buffer[] 
) const
inline

Deserialize from an indirect char[] buffer.

Definition at line 479 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Data Documentation

◆ expansion

template<typename Ordinal , typename PCEType , typename ValueSerializer >
Teuchos::RCP<expansion_type> Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::expansion
protected

Definition at line 367 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ vs

template<typename Ordinal , typename PCEType , typename ValueSerializer >
Teuchos::RCP<const ValueSerializer> Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::vs
protected

Definition at line 368 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ sz

template<typename Ordinal , typename PCEType , typename ValueSerializer >
int Sacado::PCE::SerializerImp< Ordinal, PCEType, ValueSerializer >::sz
protected

Definition at line 369 of file Sacado_PCE_ScalarTraitsImp.hpp.

◆ supportsDirectSerialization

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

Whether the type T supports direct serialization.

Definition at line 374 of file Sacado_PCE_ScalarTraitsImp.hpp.


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