Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Public Member Functions | Private Types | Private Member Functions | Private Attributes
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 116 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 132 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 133 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[] 
)

Serialize to an internally stored T*[] buffer.

Definition at line 258 of file Teuchos_SerializerHelpers.hpp.

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

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

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

Definition at line 289 of file Teuchos_SerializerHelpers.hpp.

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

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

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

Definition at line 135 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 136 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 137 of file Teuchos_SerializerHelpers.hpp.

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

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