Handle class for type-safety. More...
Public Member Functions | |
Identifier () | |
Default constructor. Initializes handle with invalid value. More... |
|
Identifier (Int_type h) | |
Constructor. Initializes handle with given integer value. More... |
|
Identifier (Identifier_struct< name, Int_type > h) | |
Constructor from underlying storage type. More... |
|
operator Int_type () const | |
Conversion operator to underlying integer type. More... |
|
Int_type | operator* () const |
Dereferences the handle. Returns its integer value. More... |
|
bool | is_valid () const |
Returns whether the handle is valid. More... |
|
Identifier & | operator++ () |
Pre-increment operator. More... |
|
Identifier | operator++ (int) |
Post-increment operator. More... |
|
Identifier & | operator-- () |
Pre-decrement operator. More... |
|
Identifier | operator-- (int) |
Post-decrement operator. More... |
|
bool | operator< (const Identifier &other) const |
Less-than operator. More... |
|
bool | operator<= (const Identifier &other) const |
Less-than-or-equal-to operator. More... |
|
bool | operator> (const Identifier &other) const |
Greater-than operator. More... |
|
bool | operator>= (const Identifier &other) const |
Greater-than-or-equal-to operator. More... |
|
Additional Inherited Members | |
Public Attributes inherited from mi::Identifier_struct< name, Int_type > | |
Int_type | m_id |
The handle ID. More... |
|
Handle class for type-safety.
|
inline |
Default constructor. Initializes handle with invalid value.
|
inlineexplicit |
Constructor. Initializes handle with given integer value.
|
inline |
Constructor from underlying storage type.
|
inline |
Returns whether the handle is valid.
|
inline |
Conversion operator to underlying integer type.
|
inline |
Dereferences the handle. Returns its integer value.
|
inline |
Pre-increment operator.
|
inline |
Post-increment operator.
|
inline |
Pre-decrement operator.
|
inline |
Post-decrement operator.
|
inline |
Less-than operator.
|
inline |
Less-than-or-equal-to operator.
|
inline |
Greater-than operator.
|
inline |
Greater-than-or-equal-to operator.