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

Encapsulate how an array of onst objects with reference sematics is deserialized from a char[] array with memory being automatically freed at destruction time. More...

#include <Teuchos_SerializerHelpers.hpp>

List of all members.

Public Member Functions

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

Private Types

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

Private Member Functions

 ConstReferenceTypeDeserializationBuffer ()
 ConstReferenceTypeDeserializationBuffer (const ConstReferenceTypeDeserializationBuffer &)
ConstReferenceTypeDeserializationBufferoperator= (const ConstReferenceTypeDeserializationBuffer &)

Private Attributes

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

Detailed Description

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

Encapsulate how an array of onst objects with reference sematics is deserialized from a char[] array with memory being automatically freed at destruction time.

Definition at line 150 of file Teuchos_SerializerHelpers.hpp.


Member Typedef Documentation

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

Definition at line 166 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 167 of file Teuchos_SerializerHelpers.hpp.


Constructor & Destructor Documentation

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

Serialize to an internally stored T*[] buffer.

Definition at line 308 of file Teuchos_SerializerHelpers.hpp.

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

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

Definition at line 331 of file Teuchos_SerializerHelpers.hpp.

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

Member Function Documentation

template<typename Ordinal , typename T >
const T *const Teuchos::ConstReferenceTypeDeserializationBuffer< Ordinal, T >::getBuffer ( ) const

Definition at line 337 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 343 of file Teuchos_SerializerHelpers.hpp.

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

Member Data Documentation

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

Definition at line 168 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 169 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 170 of file Teuchos_SerializerHelpers.hpp.

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

Definition at line 171 of file Teuchos_SerializerHelpers.hpp.

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

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