Simple class holding a unique ID for a TransferElement.
More...
#include <TransferElementID.h>
Simple class holding a unique ID for a TransferElement.
The ID is guaranteed to be unique for all accessors throughout the lifetime of the process.
Definition at line 17 of file TransferElementID.h.
◆ TransferElementID() [1/2]
ChimeraTK::TransferElementID::TransferElementID |
( |
| ) |
|
|
default |
Default constructor constructs an invalid ID, which may be assigned with another ID.
◆ TransferElementID() [2/2]
◆ isValid()
bool ChimeraTK::TransferElementID::isValid |
( |
| ) |
const |
|
inline |
◆ makeUnique()
void ChimeraTK::TransferElementID::makeUnique |
( |
| ) |
|
|
protected |
Assign an ID to this instance.
May only be called if currently no ID has been assigned.
Definition at line 14 of file TransferElementID.cc.
◆ operator!=()
bool ChimeraTK::TransferElementID::operator!= |
( |
const TransferElementID & |
other | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
bool ChimeraTK::TransferElementID::operator== |
( |
const TransferElementID & |
other | ) |
const |
|
inline |
Compare ID with another.
Will always return false, if the ID is invalid (i.e. setId() was never called).
Definition at line 32 of file TransferElementID.h.
◆ operator<<
◆ std::hash< TransferElementID >
◆ std::less< TransferElementID >
◆ TransferElement
◆ _id
size_t ChimeraTK::TransferElementID::_id {0} |
|
protected |
The documentation for this class was generated from the following files: