![]() |
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 () |
| void | discard () |
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 71 of file DataAllocator.h.
| using o2::framework::LifetimeHolder< T >::type = T |
Definition at line 72 of file DataAllocator.h.
|
inline |
Definition at line 75 of file DataAllocator.h.
|
delete |
|
delete |
|
inline |
Definition at line 84 of file DataAllocator.h.
|
inline |
Definition at line 110 of file DataAllocator.h.
|
inline |
Definition at line 137 of file DataAllocator.h.
|
inline |
Definition at line 116 of file DataAllocator.h.
|
inline |
Definition at line 115 of file DataAllocator.h.
|
delete |
|
inline |
Definition at line 95 of file DataAllocator.h.
|
inline |
Definition at line 120 of file DataAllocator.h.
| std::function<void(T&)> o2::framework::LifetimeHolder< T >::callback = nullptr |
Definition at line 74 of file DataAllocator.h.
| T* o2::framework::LifetimeHolder< T >::ptr = nullptr |
Definition at line 73 of file DataAllocator.h.