Teuchos - Trilinos Tools Package Version of the Day
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true > Class Template Reference

Encapsulate how an array of non-const objects with value sematics is serialized into a char[] array. More...

#include <Teuchos_SerializationTraitsHelpers.hpp>

Public Member Functions

 ValueTypeSerializationBufferImp (const Ordinal count, T buffer[], const RCP< const Serializer > &serializer)
 Serialize to an internally stored char[] buffer.
 
 ~ValueTypeSerializationBufferImp ()
 Deserialize from the interal char[] buffer back to the original T[] buffer.
 
char * getCharBuffer () const
 
Ordinal getBytes () const
 
const ArrayView< char > getCharBufferView () const
 

Detailed Description

template<typename Ordinal, typename T, typename Serializer>
class Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >

Encapsulate how an array of non-const objects with value sematics is serialized into a char[] array.

Specialization for direct serialization.

Definition at line 139 of file Teuchos_SerializationTraitsHelpers.hpp.

Constructor & Destructor Documentation

◆ ValueTypeSerializationBufferImp()

template<typename Ordinal , typename T , typename Serializer >
Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::ValueTypeSerializationBufferImp ( const Ordinal  count,
buffer[],
const RCP< const Serializer > &  serializer 
)

Serialize to an internally stored char[] buffer.

Definition at line 566 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ ~ValueTypeSerializationBufferImp()

template<typename Ordinal , typename T , typename Serializer >
Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::~ValueTypeSerializationBufferImp

Deserialize from the interal char[] buffer back to the original T[] buffer.

Definition at line 577 of file Teuchos_SerializationTraitsHelpers.hpp.

Member Function Documentation

◆ getCharBuffer()

template<typename Ordinal , typename T , typename Serializer >
char * Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::getCharBuffer

Definition at line 584 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ getBytes()

template<typename Ordinal , typename T , typename Serializer >
Ordinal Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::getBytes

Definition at line 591 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ getCharBufferView()

template<typename Ordinal , typename T , typename Serializer >
const ArrayView< char > Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::getCharBufferView

Definition at line 600 of file Teuchos_SerializationTraitsHelpers.hpp.


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