Stokhos  Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
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, ValueT > 
vSerT
 
typedef
Teuchos::DirectSerializationTraits
< Ordinal, VecType > 
DSerT
 
typedef
Sacado::MP::SerializationTraitsImp
< Ordinal, VecType > 
STI
 

Static Public Member Functions

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.
 

Static Public Attributes

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

Detailed Description

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

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

Member Data Documentation

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.


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