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 1667 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1701 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1706 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1743 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1761 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1756 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1766 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1791 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1781 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1786 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1776 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1771 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
Definition at line 1751 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1671 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1672 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.