![]() |
Project
|
#include <DataAllocator.h>
Public Types | |
using | type = T |
Public Member Functions | |
LifetimeHolder (T *ptr_) | |
LifetimeHolder ()=delete | |
LifetimeHolder (const LifetimeHolder &)=delete | |
LifetimeHolder & | operator= (const LifetimeHolder &)=delete |
LifetimeHolder (LifetimeHolder &&other) | |
LifetimeHolder & | operator= (LifetimeHolder &&other) |
~LifetimeHolder () | |
T * | operator-> () |
T & | operator* () |
void | release () |
Public Attributes | |
T * | ptr = nullptr |
std::function< void(T &)> | callback = nullptr |
Helper to allow framework managed objecs to have a callback when they go out of scope. For example, this could be used to serialize a message into a buffer before the end of the timeframe, hence eliminating the need for the intermediate buffers.
Definition at line 67 of file DataAllocator.h.
using o2::framework::LifetimeHolder< T >::type = T |
Definition at line 68 of file DataAllocator.h.
|
inline |
Definition at line 71 of file DataAllocator.h.
|
delete |
|
delete |
|
inline |
Definition at line 80 of file DataAllocator.h.
|
inline |
Definition at line 106 of file DataAllocator.h.
|
inline |
Definition at line 112 of file DataAllocator.h.
|
inline |
Definition at line 111 of file DataAllocator.h.
|
delete |
|
inline |
Definition at line 91 of file DataAllocator.h.
|
inline |
Definition at line 116 of file DataAllocator.h.
std::function<void(T&)> o2::framework::LifetimeHolder< T >::callback = nullptr |
Definition at line 70 of file DataAllocator.h.
T* o2::framework::LifetimeHolder< T >::ptr = nullptr |
Definition at line 69 of file DataAllocator.h.