Teuchos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Teuchos::ConstValueTypeSerializationBufferImp< Ordinal, T, Serializer, true > Class Template Reference

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

#include <Teuchos_SerializationTraitsHelpers.hpp>

Public Member Functions

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

Private Member Functions

 ConstValueTypeSerializationBufferImp ()
 
 ConstValueTypeSerializationBufferImp (const ConstValueTypeSerializationBufferImp &)
 
ConstValueTypeSerializationBufferImpoperator= (const ConstValueTypeSerializationBufferImp &)
 

Private Attributes

Ordinal count_
 
const Tbuffer_
 
Ordinal bytes_
 
const charcharBuffer_
 
RCP< const Serializerserializer_
 

Detailed Description

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

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

Specialization for direct serialization.

Definition at line 174 of file Teuchos_SerializationTraitsHelpers.hpp.

Constructor & Destructor Documentation

◆ ConstValueTypeSerializationBufferImp() [1/3]

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

Serialize to an internally stored char[] buffer.

Definition at line 612 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ ~ConstValueTypeSerializationBufferImp()

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

Definition at line 623 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ ConstValueTypeSerializationBufferImp() [2/3]

template<typename Ordinal , typename T , typename Serializer >
Teuchos::ConstValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::ConstValueTypeSerializationBufferImp ( )
private

◆ ConstValueTypeSerializationBufferImp() [3/3]

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

Member Function Documentation

◆ getCharBuffer()

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

Definition at line 630 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ getBytes()

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

Definition at line 637 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ getCharBufferView()

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

Definition at line 645 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ operator=()

Member Data Documentation

◆ count_

template<typename Ordinal , typename T , typename Serializer >
Ordinal Teuchos::ConstValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::count_
private

Definition at line 192 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ buffer_

Definition at line 193 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ bytes_

template<typename Ordinal , typename T , typename Serializer >
Ordinal Teuchos::ConstValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::bytes_
private

Definition at line 194 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ charBuffer_

template<typename Ordinal , typename T , typename Serializer >
const char* Teuchos::ConstValueTypeSerializationBufferImp< Ordinal, T, Serializer, true >::charBuffer_
private

Definition at line 195 of file Teuchos_SerializationTraitsHelpers.hpp.

◆ serializer_

Definition at line 196 of file Teuchos_SerializationTraitsHelpers.hpp.


The documentation for this class was generated from the following file: