Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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. More...
 
typedef PCEType::expansion_type expansion_type
 Typename of expansion. More...
 

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. More...
 
Teuchos::RCP< const
value_serializer_type
getValueSerializer () const
 Get nested value serializer. More...
 

Static Public Attributes

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

Protected Types

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

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. More...
 
void serialize (const Ordinal count, const PCEType buffer[], const Ordinal bytes, char charBuffer[]) const
 Serialize to an indirect char[] buffer. More...
 
Ordinal fromIndirectBytesToCount (const Ordinal bytes, const char charBuffer[]) const
 Return the number of objects for bytes of storage. More...
 
void deserialize (const Ordinal bytes, const char charBuffer[], const Ordinal count, PCEType buffer[]) const
 Deserialize from an indirect char[] buffer. More...
 

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 319 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Typedef Documentation

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 324 of file Sacado_PCE_ScalarTraitsImp.hpp.

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 327 of file Sacado_PCE_ScalarTraitsImp.hpp.

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

Definition at line 331 of file Sacado_PCE_ScalarTraitsImp.hpp.

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

Definition at line 332 of file Sacado_PCE_ScalarTraitsImp.hpp.

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

Definition at line 333 of file Sacado_PCE_ScalarTraitsImp.hpp.

Constructor & Destructor Documentation

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 344 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Function Documentation

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 349 of file Sacado_PCE_ScalarTraitsImp.hpp.

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 353 of file Sacado_PCE_ScalarTraitsImp.hpp.

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 360 of file Sacado_PCE_ScalarTraitsImp.hpp.

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 387 of file Sacado_PCE_ScalarTraitsImp.hpp.

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 422 of file Sacado_PCE_ScalarTraitsImp.hpp.

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 447 of file Sacado_PCE_ScalarTraitsImp.hpp.

Member Data Documentation

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

Definition at line 335 of file Sacado_PCE_ScalarTraitsImp.hpp.

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

Definition at line 336 of file Sacado_PCE_ScalarTraitsImp.hpp.

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

Definition at line 337 of file Sacado_PCE_ScalarTraitsImp.hpp.

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 342 of file Sacado_PCE_ScalarTraitsImp.hpp.


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