class to store and manage objects in BookStore.
More...
#include <Entry.h>
|
struct | EntryHelper |
| class which helps to access entry from the different EntryTypes More...
|
|
class to store and manage objects in BookStore.
Definition at line 124 of file Entry.h.
◆ Entry() [1/2]
marlinmt::book::details::Entry::Entry |
( |
std::shared_ptr< EntryBase > |
entry, |
|
|
EntryKey |
key |
|
) |
| |
|
inlineprivate |
constructor
Definition at line 128 of file Entry.h.
◆ Entry() [2/2]
marlinmt::book::details::Entry::Entry |
( |
| ) |
|
|
default |
default constructor. Not valid!
◆ clear()
void marlinmt::book::details::Entry::clear |
( |
| ) |
|
|
inlineprivate |
reduce Entry to default constructed version.
Definition at line 132 of file Entry.h.
◆ handle()
template<class T >
Handle< T > marlinmt::book::details::Entry::handle |
( |
std::size_t |
idx = -1 | ) |
const |
|
inline |
creates an handle for the entry.
- Parameters
-
idx | of instance, only used for multi copy entries |
- Exceptions
-
BookStoreException | when the Entry has Invalid Flags, or type mismatch with demanded Handle. |
- Returns
- empty optional if the type or the configuration not matches.
Definition at line 250 of file Entry.h.
References MARLIN_BOOK_THROW.
◆ key()
const EntryKey& marlinmt::book::details::Entry::key |
( |
| ) |
const |
|
inline |
access key data from entry.
Definition at line 260 of file Entry.h.
◆ valid()
bool marlinmt::book::details::Entry::valid |
( |
| ) |
const |
|
inline |
check if entry is valid.
check if there is a reference stored or not.
- Returns
- true if entry is valid.
Definition at line 267 of file Entry.h.
◆ _entry
std::shared_ptr< EntryBase > marlinmt::book::details::Entry::_entry {nullptr} |
|
private |
reference to entry data.
Definition at line 273 of file Entry.h.
◆ _key
EntryKey marlinmt::book::details::Entry::_key {std::type_index( typeid( void ) )} |
|
private |
◆ BookStore
friend marlinmt::book::details::Entry::BookStore |
|
private |
The documentation for this class was generated from the following file: