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

entry for object to be used Multithreaded. More...

#include <Entry.h>

Inherits marlinmt::book::EntryBase.

Public Member Functions

 EntryMultiShared ()=default
 default constructor More...
 
Handle< T > handle ()
 creates a new handle for the object. More...
 

Static Public Attributes

static constexpr Flag_t Flag = Flags::Book::MultiShared
 

Private Member Functions

 EntryMultiShared (Context context)
 constructor More...
 

Private Attributes

friend BookStore
 
Context _context
 

Detailed Description

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

entry for object to be used Multithreaded.

contain only one Instance and a thread save way to write.

Note
keep synchronisation points in mind.

Definition at line 87 of file Entry.h.

Constructor & Destructor Documentation

◆ EntryMultiShared() [1/2]

template<typename T>
marlinmt::book::EntryMultiShared< T >::EntryMultiShared ( Context  context)
inlineexplicitprivate

constructor

Definition at line 91 of file Entry.h.

◆ EntryMultiShared() [2/2]

template<typename T>
marlinmt::book::EntryMultiShared< T >::EntryMultiShared ( )
default

default constructor

Member Function Documentation

◆ handle()

template<typename T>
Handle< T > marlinmt::book::EntryMultiShared< T >::handle ( )
inline

creates a new handle for the object.

Each handle may contain some kind of Buffer to reduce sync-points.

Definition at line 103 of file Entry.h.

References marlinmt::book::EntrySingle< T >::_context, and marlinmt::book::Context::mem.

Member Data Documentation

◆ _context

template<typename T>
Context marlinmt::book::EntryMultiShared< T >::_context
private
See also
{EntrySingle::_context}

Definition at line 109 of file Entry.h.

◆ BookStore

template<typename T>
friend marlinmt::book::EntryMultiShared< T >::BookStore
private

Definition at line 88 of file Entry.h.

◆ Flag

template<typename T>
constexpr Flag_t marlinmt::book::EntryMultiShared< T >::Flag = Flags::Book::MultiShared
static

Definition at line 95 of file Entry.h.


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