![]() |
Project
|
#include <InputRecord.h>
Inherits std::default_delete< T >.
Public Types | |
| enum struct | OwnershipProperty : short { Unknown = -1 , NotOwning = 0 , Owning = 1 } |
| using | base = std::default_delete< T > |
| using | self_type = Deleter< T > |
Public Member Functions | |
| constexpr | Deleter ()=default |
| constexpr | Deleter (bool isOwning) |
| constexpr | Deleter (const self_type &other) |
| constexpr | Deleter (const base &other) |
| self_type & | operator= (const self_type &other) |
| void | operator() (T *ptr) const |
A deleter type to be used with unique_ptr, which can be marked that it does not own the underlying resource and thus should not delete it. The resource ownership property controls the behavior and can only be set at construction of the deleter in the unique_ptr. Falls back to default_delete if not initialized to 'NotOwning'. Usage: unique_ptr<T, Deleter<T>> ptr(..., Deleter<T>(false))
By contract, the underlying, not owned resource is supposed to be available during the lifetime of the object, which is the case in the InputRecord and DPL processing APIs. The Deleter can be extended to support a callback to call a resource management outside.
Definition at line 138 of file InputRecord.h.
| using o2::framework::InputRecord::Deleter< T >::base = std::default_delete<T> |
Definition at line 147 of file InputRecord.h.
| using o2::framework::InputRecord::Deleter< T >::self_type = Deleter<T> |
Definition at line 148 of file InputRecord.h.
|
strong |
| Enumerator | |
|---|---|
| Unknown | |
| NotOwning | |
| Owning | don't delete the underlying buffer |
Definition at line 141 of file InputRecord.h.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 152 of file InputRecord.h.
|
inlineconstexpr |
Definition at line 159 of file InputRecord.h.
|
inlineconstexpr |
Definition at line 170 of file InputRecord.h.
|
inline |
Definition at line 186 of file InputRecord.h.
|
inline |
Definition at line 173 of file InputRecord.h.