Type-safe nonzero price value used for price ordering.
More...
#include <price.hpp>
|
| | Price () |
| | Constructs an invalid, zero-valued price.
|
| | Price (std::uint64_t price) |
| | Constructs a price from its numeric value.
|
| std::uint64_t | getPrice () const |
| | Returns the underlying numeric price.
|
| auto | operator<=> (const Price &other) const |
| | Compares prices chronologically by numeric value.
|
| bool | isValid () const |
| | Returns whether the price is nonzero.
|
Type-safe nonzero price value used for price ordering.
Definition at line 9 of file price.hpp.
◆ Price() [1/2]
◆ Price() [2/2]
| lob::Price::Price |
( |
std::uint64_t | price | ) |
|
|
inline |
Constructs a price from its numeric value.
Definition at line 18 of file price.hpp.
◆ getPrice()
| std::uint64_t lob::Price::getPrice |
( |
| ) |
const |
|
inline |
◆ operator<=>()
| auto lob::Price::operator<=> |
( |
const Price & | other | ) |
const |
|
inline |
Compares prices chronologically by numeric value.
Definition at line 24 of file price.hpp.
References Price().
◆ isValid()
| bool lob::Price::isValid |
( |
| ) |
const |
|
inline |
Returns whether the price is nonzero.
Definition at line 28 of file price.hpp.
The documentation for this class was generated from the following file: