ATLAS Offline Software
|
Helper class to refer to objects in the container ObjContainer. More...
#include <ObjContainer.h>
Public Member Functions | |
ObjRef ()=default | |
ObjRef (unsigned short idx) | |
ObjRef (const ObjRef &ref)=default | |
ObjRef (ObjRef &&ref) | |
bool | isValid () const |
Return true if this class refers to an object which used to exist in the container. More... | |
operator bool () const | |
See isValid. More... | |
ObjRef & | operator= (const ObjRef &ref)=default |
ObjRef & | operator= (ObjRef &&ref) |
bool | operator== (const ObjRef &obj) const |
bool | operator!= (const ObjRef &obj) const |
Private Member Functions | |
unsigned short | idx () const |
Static Private Member Functions | |
static constexpr unsigned short | invalid () |
Private Attributes | |
unsigned short | m_index = invalid() |
Friends | |
template<class T_Obj_ > | |
class | ObjContainer |
template<class T_Obj_ > | |
class | ObjPtr |
Helper class to refer to objects in the container ObjContainer.
Does not provide object lifetime guarantees. The latter is only guaranteed if an ObjPtr matching this reference is still instantiated.
Definition at line 61 of file ObjContainer.h.
|
default |
|
inline |
Definition at line 70 of file ObjContainer.h.
|
inline |
|
inlineprivate |
Definition at line 104 of file ObjContainer.h.
|
inlinestaticconstexprprivate |
Definition at line 106 of file ObjContainer.h.
|
inline |
Return true if this class refers to an object which used to exist in the container.
If true there is still no guarantee that the object is still alive.
Definition at line 79 of file ObjContainer.h.
|
inline |
|
inline |
Definition at line 99 of file ObjContainer.h.
Definition at line 95 of file ObjContainer.h.
|
friend |
Definition at line 63 of file ObjContainer.h.
|
friend |
Definition at line 65 of file ObjContainer.h.
|
private |
Definition at line 107 of file ObjContainer.h.