![]() |
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 1920 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1929 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
Definition at line 1946 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1954 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1959 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1996 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2014 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2009 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2019 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2044 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2034 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2039 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2029 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 2024 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
Definition at line 2004 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1924 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1925 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.