Teuchos::ValueTypeSerializationBuffer< Ordinal, T > 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

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

Detailed Description

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

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

Definition at line 41 of file Teuchos_SerializationTraitsHelpers.hpp.


Constructor & Destructor Documentation

template<typename Ordinal , typename T >
Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::ValueTypeSerializationBuffer ( const Ordinal  count,
buffer[] 
) [inline]

Serialize to an internally stored char[] buffer.

Definition at line 170 of file Teuchos_SerializationTraitsHelpers.hpp.

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

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

Definition at line 182 of file Teuchos_SerializationTraitsHelpers.hpp.


Member Function Documentation

template<typename Ordinal , typename T >
char * Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::getCharBuffer (  )  const [inline]

Definition at line 189 of file Teuchos_SerializationTraitsHelpers.hpp.

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

Definition at line 195 of file Teuchos_SerializationTraitsHelpers.hpp.

template<typename Ordinal , typename T >
const ArrayView< char > Teuchos::ValueTypeSerializationBuffer< Ordinal, T >::getCharBufferView (  )  const [inline]

Definition at line 203 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
Generated on Wed Apr 13 09:57:47 2011 for Teuchos - Trilinos Tools Package by  doxygen 1.6.3