CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
edm::shared_memory::ROOTSerializer< T, WRITEBUFFER > Class Template Reference

#include <ROOTSerializer.h>

Public Member Functions

const ROOTSerializeroperator= (const ROOTSerializer &)=delete
 
const ROOTSerializeroperator= (ROOTSerializer &&)=delete
 
 ROOTSerializer (WRITEBUFFER &iBuffer)
 
 ROOTSerializer (const ROOTSerializer &)=delete
 
 ROOTSerializer (ROOTSerializer &&)=delete
 
void serialize (T &iValue)
 

Private Attributes

WRITEBUFFER & buffer_
 
TBufferFile bufferFile_
 
TClass *const class_
 

Detailed Description

template<typename T, typename WRITEBUFFER>
class edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >

Definition at line 31 of file ROOTSerializer.h.

Constructor & Destructor Documentation

template<typename T, typename WRITEBUFFER>
edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::ROOTSerializer ( WRITEBUFFER &  iBuffer)
inline

Definition at line 33 of file ROOTSerializer.h.

Referenced by edm::shared_memory::ROOTSerializer< edm::RandomNumberGeneratorState, WriteBuffer >::ROOTSerializer().

34  : buffer_(iBuffer), class_{TClass::GetClass(typeid(T))}, bufferFile_{TBuffer::kWrite} {}
long double T
template<typename T, typename WRITEBUFFER>
edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::ROOTSerializer ( const ROOTSerializer< T, WRITEBUFFER > &  )
delete
template<typename T, typename WRITEBUFFER>
edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::ROOTSerializer ( ROOTSerializer< T, WRITEBUFFER > &&  )
delete

Member Function Documentation

template<typename T, typename WRITEBUFFER>
const ROOTSerializer& edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::operator= ( const ROOTSerializer< T, WRITEBUFFER > &  )
delete
template<typename T, typename WRITEBUFFER>
const ROOTSerializer& edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::operator= ( ROOTSerializer< T, WRITEBUFFER > &&  )
delete
template<typename T, typename WRITEBUFFER>
void edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::serialize ( T iValue)
inline

Definition at line 44 of file ROOTSerializer.h.

Referenced by main().

44  {
45  bufferFile_.Reset();
46  class_->WriteBuffer(bufferFile_, &iValue);
47 
48  buffer_.copyToBuffer(bufferFile_.Buffer(), bufferFile_.Length());
49  }

Member Data Documentation

template<typename T, typename WRITEBUFFER>
WRITEBUFFER& edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::buffer_
private
template<typename T, typename WRITEBUFFER>
TBufferFile edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::bufferFile_
private
template<typename T, typename WRITEBUFFER>
TClass* const edm::shared_memory::ROOTSerializer< T, WRITEBUFFER >::class_
private