|
Teuchos Package Browser (Single Doxygen Collection) Version of the Day
|
#include <Teuchos_SerializationTraits.hpp>

Serialization type selection | |
| static const bool | supportsDirectSerialization |
| Whether the type T supports direct serialization. | |
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 (std::pair< P1, P2 > *ptr) |
| Convert the pointer type to char*. | |
| static Ordinal | fromDirectBytesToCount (const Ordinal bytes) |
| Return the number of objects for bytes of storage. | |
| static std::pair< P1, P2 > * | convertFromCharPtr (char *ptr) |
| Convert the pointer type from char*. | |
Indirect serialization functions (always defined and supported) | |
| static Ordinal | fromCountToIndirectBytes (const Ordinal count, const std::pair< P1, P2 > buffer[]) |
| Return the number of bytes for count objects. | |
| static void | serialize (const Ordinal count, const std::pair< P1, P2 > 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, std::pair< P1, P2 > buffer[]) |
| Deserialize from an indirect char[] buffer. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Teuchos::DirectSerializationTraits< Ordinal, std::pair< P1, P2 > > | |
| static Ordinal | fromCountToDirectBytes (const Ordinal count) |
| static char * | convertToCharPtr (std::pair< P1, P2 > *ptr) |
| static Ordinal | fromDirectBytesToCount (const Ordinal count) |
| static std::pair< P1, P2 > * | convertFromCharPtr (char *ptr) |
| static Ordinal | fromCountToIndirectBytes (const Ordinal count, const std::pair< P1, P2 > buffer[]) |
| static void | serialize (const Ordinal count, const std::pair< P1, P2 > 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, std::pair< P1, P2 > buffer[]) |
| Static Public Attributes inherited from Teuchos::DirectSerializationTraits< Ordinal, std::pair< P1, P2 > > | |
| static const bool | supportsDirectSerialization |
Definition at line 427 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Return the number of bytes for count objects.
Definition at line 148 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Convert the pointer type to char*.
Definition at line 155 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Return the number of objects for bytes of storage.
Definition at line 169 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Convert the pointer type from char*.
Definition at line 176 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Return the number of bytes for count objects.
Definition at line 195 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Serialize to an indirect char[] buffer.
| count | [in] The number of objects to serialize. |
| buffer | [in] The objects to serialize. |
| bytes | [in] Number of bytes in charBuffer[] |
| charBuffer | [out] Array (length bytes) containing the serialized objects. |
Preconditions:
Definition at line 217 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Return the number of objects for bytes of storage.
Definition at line 227 of file Teuchos_SerializationTraits.hpp.
|
inlinestatic |
Deserialize from an indirect char[] buffer.
| bytes | [in] Number of bytes in charBuffer[] |
| charBuffer | [in] Array (length bytes) containing the serialized objects. |
| count | [in] The number of objects to deserialize. |
| buffer | [out] The deserialized objects. |
Preconditions:
Definition at line 249 of file Teuchos_SerializationTraits.hpp.
|
static |
Whether the type T supports direct serialization.
See the class documentation for definitions of "direct" and "indirect" serialization.
Definition at line 140 of file Teuchos_SerializationTraits.hpp.