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 | Private Types | Private Attributes | List of all members
Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer > Class Template Reference

An indirect serialization object for all Vector types. More...

#include <Sacado_MP_ScalarTraitsImp.hpp>

Inheritance diagram for Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >:
Inheritance graph
[legend]

Public Types

typedef ValueSerializer value_serializer_type
 Typename of value serializer. More...
 

Public Member Functions

 SerializerImp (const Teuchos::RCP< const ValueSerializer > &vs_, Ordinal sz_=0)
 Constructor. More...
 
Ordinal getSerializerSize () 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
 Whether we support direct serialization. More...
 

Private Types

typedef SerializationImp
< Ordinal, VecType,
ValueSerializer > 
Imp
 Implementation. More...
 

Private Attributes

Teuchos::RCP< const
ValueSerializer > 
vs
 Serializer for value types. More...
 
Ordinal sz
 Specified number of derivative components;. More...
 

Indirect serialization functions (always defined and supported)

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

Detailed Description

template<typename Ordinal, typename VecType, typename ValueSerializer>
class Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >

An indirect serialization object for all Vector types.

Definition at line 565 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Typedef Documentation

template<typename Ordinal, typename VecType, typename ValueSerializer>
typedef SerializationImp<Ordinal,VecType,ValueSerializer> Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >::Imp
private

Implementation.

Definition at line 570 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal, typename VecType, typename ValueSerializer>
typedef ValueSerializer Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >::value_serializer_type

Typename of value serializer.

Definition at line 581 of file Sacado_MP_ScalarTraitsImp.hpp.

Constructor & Destructor Documentation

template<typename Ordinal, typename VecType, typename ValueSerializer>
Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >::SerializerImp ( const Teuchos::RCP< const ValueSerializer > &  vs_,
Ordinal  sz_ = 0 
)
inline

Constructor.

Definition at line 588 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Function Documentation

template<typename Ordinal, typename VecType, typename ValueSerializer>
Ordinal Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >::getSerializerSize ( ) const
inline

Return specified serializer size.

Definition at line 593 of file Sacado_MP_ScalarTraitsImp.hpp.

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

Get nested value serializer.

Definition at line 596 of file Sacado_MP_ScalarTraitsImp.hpp.

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

Return the number of bytes for count objects.

Definition at line 603 of file Sacado_MP_ScalarTraitsImp.hpp.

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

Serialize to an indirect char[] buffer.

Definition at line 609 of file Sacado_MP_ScalarTraitsImp.hpp.

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

Return the number of objects for bytes of storage.

Definition at line 617 of file Sacado_MP_ScalarTraitsImp.hpp.

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

Deserialize from an indirect char[] buffer.

Definition at line 623 of file Sacado_MP_ScalarTraitsImp.hpp.

Member Data Documentation

template<typename Ordinal, typename VecType, typename ValueSerializer>
Teuchos::RCP<const ValueSerializer> Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >::vs
private

Serializer for value types.

Definition at line 573 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal, typename VecType, typename ValueSerializer>
Ordinal Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >::sz
private

Specified number of derivative components;.

Definition at line 576 of file Sacado_MP_ScalarTraitsImp.hpp.

template<typename Ordinal, typename VecType, typename ValueSerializer>
const bool Sacado::MP::SerializerImp< Ordinal, VecType, ValueSerializer >::supportsDirectSerialization
static
Initial value:

Whether we support direct serialization.

Definition at line 584 of file Sacado_MP_ScalarTraitsImp.hpp.


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