![]() |
ATLAS Offline Software
|
Possibly holds an object in its internal buffer. More...
#include <Helpers.h>
Public Member Functions | |
maybe_allocate (const bool allocate, const T &t) | |
maybe_allocate (const bool allocate, T &&t) | |
template<class ... Args> | |
maybe_allocate (const bool allocate, Args &&... args) | |
maybe_allocate (const maybe_allocate &other) | |
maybe_allocate (maybe_allocate &&other) | |
maybe_allocate & | operator= (const maybe_allocate &other) |
maybe_allocate & | operator= (maybe_allocate &&other) |
~maybe_allocate () | |
bool | valid () const |
T && | get () && |
T & | get () & |
const T & | get () const & |
const T * | operator-> () const |
T * | operator-> () |
operator T& () | |
operator T&& () && | |
operator const T & () const | |
Private Attributes | |
char | m_buf [sizeof(T)] |
T * | m_object = nullptr |
Possibly holds an object in its internal buffer.
Useful to forego heap allocations, but still have the option not to construct something...
Definition at line 1645 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1679 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1684 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1721 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1739 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1734 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1744 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1769 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1759 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1764 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1754 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1749 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
Definition at line 1729 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1649 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1650 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.