Stokhos
Development
|
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... | |
Implementation of Teuchos::SerializationTraits for all static Vec types.
|
static |
Whether the type T supports direct serialization.