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 41 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[] 
) [inline]

Serialize to an internally stored char[] buffer.

Definition at line 174 of file Teuchos_SerializerHelpers.hpp.

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

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

Definition at line 186 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 [inline]

Definition at line 192 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 201 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 57 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 58 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 59 of file Teuchos_SerializerHelpers.hpp.

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

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

Generated on Tue Oct 20 10:14:05 2009 for Teuchos Package Browser (Single Doxygen Collection) by  doxygen 1.6.1