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 1664 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1698 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1703 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1740 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1758 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1753 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1763 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1788 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1778 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1783 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1773 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1768 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
Definition at line 1748 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1668 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1669 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.