Belle II Software light-2406-ragdoll
|
Class for pointing to an element in an array stored in the database. More...
#include <DBPointer.h>
Public Member Functions | |
DBPointer (KEY key) | |
Constructor of pointer to an array element in the database. | |
KEY | key () const |
Accessor for key value. | |
operator KEY () const | |
Accessor for key value. | |
KEY | operator= (KEY key) |
Setter for key value. | |
bool | isValid () const |
Check whether we point to a valid object. | |
operator bool () const | |
Is this pointer's data safe to access? | |
const T & | operator* () const |
Imitate pointer functionality. | |
const T * | operator-> () const |
Imitate pointer functionality. | |
Private Member Functions | |
const T * | getPointer () const |
Find the referred object and set m_object to it. | |
Private Attributes | |
KEY | m_key |
Key value of the referred array element. | |
const T * | m_object |
Pointer to actual object. | |
Class for pointing to an element in an array stored in the database.
Definition at line 24 of file DBPointer.h.
|
inlineexplicit |
Constructor of pointer to an array element in the database.
key | The key value to identify the element. |
Definition at line 31 of file DBPointer.h.
|
inlineprivate |
|
inline |
Check whether we point to a valid object.
Definition at line 47 of file DBPointer.h.
|
inline |
|
inline |
Is this pointer's data safe to access?
Definition at line 50 of file DBPointer.h.
|
inline |
|
inline |
Imitate pointer functionality.
Definition at line 52 of file DBPointer.h.
|
inline |
Imitate pointer functionality.
Definition at line 53 of file DBPointer.h.
|
inline |
|
private |
Key value of the referred array element.
Definition at line 67 of file DBPointer.h.
|
mutableprivate |
Pointer to actual object.
Definition at line 70 of file DBPointer.h.