![]() |
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 1875 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1884 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
Definition at line 1901 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1909 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1914 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1951 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1969 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1964 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1974 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1999 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1989 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1994 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1984 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
Definition at line 1979 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
inline |
|
inline |
|
inline |
Definition at line 1959 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1879 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.
|
private |
Definition at line 1880 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.