Teuchos Package Browser (Single Doxygen Collection)
Version of the Day
|
Serialization traits for objects that support direct serialization. More...
#include <Teuchos_SerializationTraits.hpp>
Static Public Member Functions | |
static Ordinal | fromCountToDirectBytes (const Ordinal count) |
static char * | convertToCharPtr (T *ptr) |
static const char * | convertToCharPtr (const T *ptr) |
static Ordinal | fromDirectBytesToCount (const Ordinal count) |
static T * | convertFromCharPtr (char *ptr) |
static const T * | convertFromCharPtr (const char *ptr) |
static Ordinal | fromCountToIndirectBytes (const Ordinal count, const T buffer[]) |
static void | serialize (const Ordinal count, const T buffer[], const Ordinal bytes, char charBuffer[]) |
static Ordinal | fromIndirectBytesToCount (const Ordinal bytes, const char charBuffer[]) |
static void | deserialize (const Ordinal bytes, const char charBuffer[], const Ordinal count, T buffer[]) |
Static Public Attributes | |
static const bool | supportsDirectSerialization = true |
Serialization traits for objects that support direct serialization.
"Direct" serialization means that you can convert directly between an object of type T and an array of char, of a specific length dependent only on the type T and not on the particular instance. Specifically, it means you can
"Indirect" serialization is defined as any serialization method more general than that.
We use partial specializations of DirectSerializationTraits (specialized on certain T types, not Ordinal) as public base classes for the corresponding SerializationTraits specialization. This provides high-performance default implementations of serialization for commonly used types T (including char, int, and double).
Ordinal | The same template parameter as that of Comm . The integer type used to count the number of packets sent and received. |
T | The type of the objects that this class shows how to serialize. |
Definition at line 279 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 283 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 285 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 287 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 289 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 291 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 293 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 296 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 298 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 310 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Definition at line 313 of file Teuchos_SerializationTraits.hpp.
|
static |
Definition at line 281 of file Teuchos_SerializationTraits.hpp.