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

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

#include <Teuchos_SerializationTraitsHelpers.hpp>

List of all members.

Public Member Functions

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

Private Member Functions

 ValueTypeSerializationBufferImp ()
 ValueTypeSerializationBufferImp (const ValueTypeSerializationBufferImp &)
ValueTypeSerializationBufferImpoperator= (const ValueTypeSerializationBufferImp &)

Private Attributes

Ordinal count_
T * buffer_
Ordinal bytes_
char * charBuffer_
RCP< const Serializerserializer_

Detailed Description

template<typename Ordinal, typename T, typename Serializer>
class Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >

Encapsulate how an array of non-const objects with value sematics is serialized into a char[] array.

Specialization for direct serialization.

Definition at line 141 of file Teuchos_SerializationTraitsHelpers.hpp.


Constructor & Destructor Documentation

template<typename Ordinal , typename T , typename Serializer >
Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::ValueTypeSerializationBufferImp ( const Ordinal  count,
buffer[],
const RCP< const Serializer > &  serializer 
)

Serialize to an internally stored char[] buffer.

Definition at line 569 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T , typename Serializer >
Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::~ValueTypeSerializationBufferImp ( )

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

Definition at line 580 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Member Function Documentation

template<typename Ordinal , typename T , typename Serializer >
char * Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::getCharBuffer ( ) const

Definition at line 587 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T , typename Serializer >
Ordinal Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::getBytes ( ) const

Definition at line 594 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T , typename Serializer >
const ArrayView< char > Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::getCharBufferView ( ) const

Definition at line 603 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Member Data Documentation

template<typename Ordinal , typename T , typename Serializer >
Ordinal Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::count_ [private]

Definition at line 159 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T , typename Serializer >
T* Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::buffer_ [private]

Definition at line 160 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T , typename Serializer >
Ordinal Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::bytes_ [private]

Definition at line 161 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T , typename Serializer >
char* Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::charBuffer_ [private]

Definition at line 162 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T , typename Serializer >
RCP<const Serializer> Teuchos::ValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::serializer_ [private]

Definition at line 163 of file Teuchos_SerializationTraitsHelpers.hpp.


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