EventStore class.
More...
#include <EventStore.h>
EventStore class.
Provide an interface to a user defined event object.
Definition at line 17 of file EventStore.h.
◆ EventStore() [1/3]
marlinmt::EventStore::EventStore |
( |
| ) |
|
|
default |
◆ ~EventStore()
marlinmt::EventStore::~EventStore |
( |
| ) |
|
|
default |
◆ EventStore() [2/3]
marlinmt::EventStore::EventStore |
( |
const EventStore & |
| ) |
|
|
delete |
◆ EventStore() [3/3]
marlinmt::EventStore::EventStore |
( |
EventStore && |
| ) |
|
|
default |
◆ allocate()
template<typename T , typename ... Args>
std::shared_ptr< T > marlinmt::EventStore::allocate |
( |
Args &&... |
args | ) |
|
|
inline |
Allocate a new event in the event store and return it.
As the current event is replaced the old one might be deleted via the shared_ptr mechanism.
Definition at line 180 of file EventStore.h.
References setEvent().
◆ event()
template<typename T >
std::shared_ptr< T > marlinmt::EventStore::event |
( |
| ) |
const |
|
inline |
◆ extensions() [1/2]
◆ extensions() [2/2]
const Extensions & marlinmt::EventStore::extensions |
( |
| ) |
const |
|
inline |
◆ isType()
template<typename T >
bool marlinmt::EventStore::isType |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset()
void marlinmt::EventStore::reset |
( |
| ) |
|
|
inline |
◆ setBareEvent()
template<typename T >
void marlinmt::EventStore::setBareEvent |
( |
T * |
evt, |
|
|
bool |
owner |
|
) |
| |
|
inline |
Set the event pointer using a bare pointer and an ownership flag.
- Parameters
-
event | a bare pointer to the event to store |
owner | whether to own the pointer |
Definition at line 167 of file EventStore.h.
References _event, and _eventType.
◆ setEvent()
template<typename T >
void marlinmt::EventStore::setEvent |
( |
std::shared_ptr< T > |
evt | ) |
|
|
inline |
◆ setUID()
void marlinmt::EventStore::setUID |
( |
std::size_t |
uid | ) |
|
|
inline |
Set the event unique id.
uid the unique id
Definition at line 117 of file EventStore.h.
References _uid.
◆ takeEvent()
template<typename T >
std::shared_ptr< T > marlinmt::EventStore::takeEvent |
( |
| ) |
|
|
inline |
Get the underlying event to a specific type.
The event in the store is invalidated.
Definition at line 137 of file EventStore.h.
References _event, and _eventType.
◆ type()
const std::type_index & marlinmt::EventStore::type |
( |
| ) |
const |
|
inline |
◆ uid()
std::size_t marlinmt::EventStore::uid |
( |
| ) |
const |
|
inline |
◆ _event
std::shared_ptr<void> marlinmt::EventStore::_event {nullptr} |
|
private |
◆ _eventType
std::type_index marlinmt::EventStore::_eventType {typeid(nullptr)} |
|
private |
◆ _extensions
◆ _uid
std::size_t marlinmt::EventStore::_uid {0} |
|
private |
The documentation for this class was generated from the following file: