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

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

#include <Teuchos_SerializerHelpers.hpp>

List of all members.

Public Member Functions

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

Private Member Functions

 ReferenceTypeSerializationBuffer ()
 ReferenceTypeSerializationBuffer (const ReferenceTypeSerializationBuffer &)
ReferenceTypeSerializationBufferoperator= (const ReferenceTypeSerializationBuffer &)

Private Attributes

const Serializer< Ordinal, T > & serializer_
Ordinal count_
T *const buffer_
Array< char > charBuffer_

Detailed Description

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

Encapsulate how an array of non-const objects with reference sematics is serialized into a char[] array and deserialized again.

Definition at line 54 of file Teuchos_SerializerHelpers.hpp.


Constructor & Destructor Documentation

template<typename Ordinal , typename T >
Teuchos::ReferenceTypeSerializationBuffer< Ordinal, T >::ReferenceTypeSerializationBuffer ( const Serializer< Ordinal, T > &  serializer,
const Ordinal  count,
T *const  buffer[] 
)

Serialize to an internally stored char[] buffer.

Definition at line 187 of file Teuchos_SerializerHelpers.hpp.

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

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

Definition at line 199 of file Teuchos_SerializerHelpers.hpp.

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

Member Function Documentation

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

Definition at line 205 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 214 of file Teuchos_SerializerHelpers.hpp.

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

Member Data Documentation

template<typename Ordinal , typename T >
const Serializer<Ordinal,T>& Teuchos::ReferenceTypeSerializationBuffer< Ordinal, T >::serializer_ [private]

Definition at line 70 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 71 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 72 of file Teuchos_SerializerHelpers.hpp.

template<typename Ordinal , typename T >
Array<char> Teuchos::ReferenceTypeSerializationBuffer< Ordinal, T >::charBuffer_ [private]

Definition at line 73 of file Teuchos_SerializerHelpers.hpp.


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