a (temporary) lock on a (stateful) helper channel More...
#include <ReservationId.h>
Public Member Functions | |
bool | reserved () const |
operator bool () const | |
bool | operator! () const |
bool | operator== (const Helper::ReservationId &other) const |
bool | operator!= (const Helper::ReservationId &other) const |
void | clear () |
uint64_t | value () const |
std::ostream & | print (std::ostream &os) const |
dumps the reservation info for debugging More... | |
Static Public Member Functions | |
static ReservationId | Next () |
Private Attributes | |
uint64_t | id = 0 |
uniquely identifies this reservation More... | |
Detailed Description
Definition at line 17 of file ReservationId.h.
Member Function Documentation
◆ clear()
|
inline |
Definition at line 29 of file ReservationId.h.
◆ Next()
|
static |
Definition at line 13 of file ReservationId.cc.
References id.
Referenced by helper_stateful_server::reserve().
◆ operator bool()
|
inlineexplicit |
Definition at line 24 of file ReservationId.h.
References reserved().
◆ operator!()
|
inline |
Definition at line 25 of file ReservationId.h.
References reserved().
◆ operator!=()
|
inline |
Definition at line 27 of file ReservationId.h.
◆ operator==()
|
inline |
Definition at line 26 of file ReservationId.h.
References id.
◆ print()
std::ostream & Helper::ReservationId::print | ( | std::ostream & | os | ) | const |
Definition at line 22 of file ReservationId.cc.
◆ reserved()
|
inline |
Definition at line 22 of file ReservationId.h.
Referenced by operator bool(), operator!(), and helper_stateful_server::reserved().
◆ value()
|
inline |
Definition at line 30 of file ReservationId.h.
References id.
Member Data Documentation
◆ id
|
private |
Definition at line 36 of file ReservationId.h.
Referenced by Next(), operator==(), and value().
The documentation for this class was generated from the following files:
- src/helper/ReservationId.h
- src/helper/ReservationId.cc