MarlinMT  0.1.0
marlinmt::book::BaseHandle< T > Class Template Reference

class which basic functionality for every handle. More...

#include <Handle.h>

Inherited by marlinmt::book::Handle< T >.

Public Member Functions

const T & merged ()
 get final object. More...
 

Protected Member Functions

 BaseHandle (std::shared_ptr< MemLayout > mem, std::shared_ptr< T > obj)
 
T & get ()
 get access to Object. Used by children to abstract storage. More...
 

Private Attributes

std::shared_ptr< MemLayout_mem
 pointer to memory from instances. More...
 
std::shared_ptr< T > _obj
 pointer to the one managed instance. More...
 

Detailed Description

template<typename T>
class marlinmt::book::BaseHandle< T >

class which basic functionality for every handle.

Template Parameters
Ttype which should be handled.

Definition at line 24 of file Handle.h.

Constructor & Destructor Documentation

◆ BaseHandle()

template<typename T>
marlinmt::book::BaseHandle< T >::BaseHandle ( std::shared_ptr< MemLayout mem,
std::shared_ptr< T >  obj 
)
inlineprotected

Definition at line 26 of file Handle.h.

Member Function Documentation

◆ get()

template<typename T>
T& marlinmt::book::BaseHandle< T >::get ( )
inlineprotected

get access to Object. Used by children to abstract storage.

Definition at line 30 of file Handle.h.

◆ merged()

template<typename T>
const T& marlinmt::book::BaseHandle< T >::merged ( )
inline

get final object.

access the final version of the Object.

Attention
this action is not thread save.
Note
the finalization is may expensive.
Returns
object which is contains data from every handle.

Definition at line 40 of file Handle.h.

Member Data Documentation

◆ _mem

template<typename T>
std::shared_ptr< MemLayout > marlinmt::book::BaseHandle< T >::_mem
private

pointer to memory from instances.

Definition at line 44 of file Handle.h.

Referenced by marlinmt::book::BaseHandle< types::HistT< Config > >::merged().

◆ _obj

template<typename T>
std::shared_ptr< T > marlinmt::book::BaseHandle< T >::_obj
private

pointer to the one managed instance.

Definition at line 46 of file Handle.h.

Referenced by marlinmt::book::BaseHandle< types::HistT< Config > >::BaseHandle(), and marlinmt::book::BaseHandle< types::HistT< Config > >::get().


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