Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions | Private Member Functions | Private Attributes
Teuchos::ValueTypeSerializationBuffer< Ordinal, T > 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>

List of all members.

Public Member Functions

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

Private Member Functions

 ValueTypeSerializationBuffer ()
 ValueTypeSerializationBuffer (const ValueTypeSerializationBuffer &)
ValueTypeSerializationBufferoperator= (const ValueTypeSerializationBuffer &)

Private Attributes

Ordinal count_
T * buffer_
Ordinal bytes_
char * charBuffer_

Detailed Description

template<typename Ordinal, typename T>
class Teuchos::ValueTypeSerializationBuffer< Ordinal, T >

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

Definition at line 54 of file Teuchos_SerializationTraitsHelpers.hpp.


Constructor & Destructor Documentation

template<typename Ordinal , typename T >
Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::ValueTypeSerializationBuffer ( const Ordinal  count,
buffer[] 
)

Serialize to an internally stored char[] buffer.

Definition at line 183 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::~ValueTypeSerializationBuffer ( )

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

Definition at line 195 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::ValueTypeSerializationBuffer ( ) [private]
template<typename Ordinal , typename T >
Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::ValueTypeSerializationBuffer ( const ValueTypeSerializationBuffer< Ordinal, T > &  ) [private]

Member Function Documentation

template<typename Ordinal , typename T >
char * Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::getCharBuffer ( ) const

Definition at line 202 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
Ordinal Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::getBytes ( ) const

Definition at line 208 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
const ArrayView< char > Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::getCharBufferView ( ) const

Definition at line 216 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
ValueTypeSerializationBuffer& Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::operator= ( const ValueTypeSerializationBuffer< Ordinal, T > &  ) [private]

Member Data Documentation

template<typename Ordinal , typename T >
Ordinal Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::count_ [private]

Definition at line 71 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
T* Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::buffer_ [private]

Definition at line 72 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
Ordinal Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::bytes_ [private]

Definition at line 73 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
char* Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::charBuffer_ [private]

Definition at line 74 of file Teuchos_SerializationTraitsHelpers.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines