Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T > Class Template Reference

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

#include <Teuchos_SerializerHelpers.hpp>

List of all members.

Public Member Functions

 ReferenceTypeDeserializationBuffer (const Serializer< Ordinal, T > &serializer, const Ordinal bytes, char charBuffer[])
 Serialize to an internally stored T*[] buffer.
 ~ReferenceTypeDeserializationBuffer ()
 Reserialize back to the char[] buffer from the internal T*[] buffer.
T *const * getBuffer () const
 
Ordinal getCount () const
 

Private Types

typedef Array< RCP< T > > buffer_ptr_t
typedef Array< T * > buffer_t

Private Member Functions

 ReferenceTypeDeserializationBuffer ()
 ReferenceTypeDeserializationBuffer (const ReferenceTypeDeserializationBuffer &)
ReferenceTypeDeserializationBufferoperator= (const ReferenceTypeDeserializationBuffer &)

Private Attributes

const Serializer< Ordinal, T > & serializer_
Ordinal bytes_
char * charBuffer_
buffer_ptr_t buffer_ptr_
buffer_t buffer_

Detailed Description

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

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

Definition at line 103 of file Teuchos_SerializerHelpers.hpp.


Member Typedef Documentation

template<typename Ordinal, typename T>
typedef Array<RCP<T> > Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T >::buffer_ptr_t [private]

Definition at line 119 of file Teuchos_SerializerHelpers.hpp.

template<typename Ordinal, typename T>
typedef Array<T*> Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T >::buffer_t [private]

Definition at line 120 of file Teuchos_SerializerHelpers.hpp.


Constructor & Destructor Documentation

template<typename Ordinal , typename T >
Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T >::ReferenceTypeDeserializationBuffer ( const Serializer< Ordinal, T > &  serializer,
const Ordinal  bytes,
char  charBuffer[] 
) [inline]

Serialize to an internally stored T*[] buffer.

Definition at line 245 of file Teuchos_SerializerHelpers.hpp.

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

Reserialize back to the char[] buffer from the internal T*[] buffer.

Definition at line 268 of file Teuchos_SerializerHelpers.hpp.

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

Member Function Documentation

template<typename Ordinal , typename T >
T *const * Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T >::getBuffer (  )  const [inline]

Definition at line 276 of file Teuchos_SerializerHelpers.hpp.

template<typename Ordinal , typename T >
Ordinal Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T >::getCount (  )  const [inline]

Definition at line 285 of file Teuchos_SerializerHelpers.hpp.

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

Member Data Documentation

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

Definition at line 121 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 122 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 123 of file Teuchos_SerializerHelpers.hpp.

template<typename Ordinal, typename T>
buffer_ptr_t Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T >::buffer_ptr_ [private]

Definition at line 124 of file Teuchos_SerializerHelpers.hpp.

template<typename Ordinal, typename T>
buffer_t Teuchos::ReferenceTypeDeserializationBuffer< Ordinal, T >::buffer_ [private]

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