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

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

#include <Entry.h>

Inherits marlinmt::book::EntryBase.

Public Member Functions

 EntryMultiCopy ()=default
 default constructor More...
 
Handle< T > handle (std::size_t idx)
 creates a new handle for the object. More...
 

Static Public Attributes

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

Private Member Functions

 EntryMultiCopy (Context context)
 constructor More...
 

Private Attributes

friend BookStore
 
Context _context
 

Detailed Description

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

entry for object to be used Multithreaded.

contains multiple instances to avoid synchronisation.

Note
keep the memory consumption in mind.

Definition at line 55 of file Entry.h.

Constructor & Destructor Documentation

◆ EntryMultiCopy() [1/2]

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

constructor

Definition at line 59 of file Entry.h.

◆ EntryMultiCopy() [2/2]

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

default constructor

Member Function Documentation

◆ handle()

template<typename T >
Handle< T > marlinmt::book::EntryMultiCopy< T >::handle ( std::size_t  idx)
inline

creates a new handle for the object.

Parameters
idxid of instance to get handle.
Attention
Use one instance only in one thread at the same time.

Definition at line 72 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::EntryMultiCopy< T >::_context
private
See also
{EntrySingle::_context}

Definition at line 78 of file Entry.h.

◆ BookStore

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

Definition at line 56 of file Entry.h.

◆ Flag

template<typename T >
constexpr Flag_t marlinmt::book::EntryMultiCopy< T >::Flag = Flags::Book::MultiCopy
static

Definition at line 63 of file Entry.h.


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