Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions | Private Member Functions | Private Attributes
Teuchos::ConstValueTypeSerializationBuffer< Ordinal, T > Class Template Reference

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

#include <Teuchos_SerializationTraitsHelpers.hpp>

List of all members.

Public Member Functions

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

Private Member Functions

 ConstValueTypeSerializationBuffer ()
 ConstValueTypeSerializationBuffer (const ConstValueTypeSerializationBuffer &)
ConstValueTypeSerializationBufferoperator= (const ConstValueTypeSerializationBuffer &)

Private Attributes

Ordinal count_
const T * buffer_
Ordinal bytes_
const char * charBuffer_

Detailed Description

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

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

Definition at line 72 of file Teuchos_SerializationTraitsHelpers.hpp.


Constructor & Destructor Documentation

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

Serialize to an internally stored char[] buffer.

Definition at line 217 of file Teuchos_SerializationTraitsHelpers.hpp.

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

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

Definition at line 229 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Member Function Documentation

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

Definition at line 236 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Definition at line 242 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Definition at line 249 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Member Data Documentation

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

Definition at line 89 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Definition at line 90 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Definition at line 91 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Definition at line 92 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