|
Leka
A low-latency C++20 price-time-priority limit order book and matching engine
|
Type-safe identifier for an order; zero is reserved as invalid. More...
#include <order_id.hpp>
Public Member Functions | |
| OrderId () | |
| Constructs an invalid, zero-valued identifier. | |
| OrderId (std::uint64_t id) | |
| Constructs an identifier from its numeric value. | |
| std::uint64_t | getId () const |
| Returns the underlying numeric identifier. | |
| bool | operator== (const OrderId &other) const |
| bool | isValid () const |
| Returns whether the identifier is nonzero. | |
Type-safe identifier for an order; zero is reserved as invalid.
Definition at line 10 of file order_id.hpp.
|
inline |
Constructs an invalid, zero-valued identifier.
Definition at line 16 of file order_id.hpp.
|
inline |
Constructs an identifier from its numeric value.
Definition at line 19 of file order_id.hpp.
|
inline |
Returns the underlying numeric identifier.
Definition at line 22 of file order_id.hpp.
|
inline |
Definition at line 25 of file order_id.hpp.
|
inline |
Returns whether the identifier is nonzero.
Definition at line 30 of file order_id.hpp.
Referenced by lob::MatchingEngine::processEvent().