Public Member Functions | |
PriceLevel () | |
PriceLevel (const Price &price, Quantity quantity=0, Quantity numberOfOrders=0, const OrderInfos &orders=OrderInfos()) | |
PriceLevel (const PriceLevel &) | |
PriceLevel & | operator= (const PriceLevel &other) |
const Price & | getPrice () const noexcept |
void | setPrice (const Price &value) noexcept |
Quantity | quantity () const noexcept |
void | quantity (Quantity value) noexcept |
Quantity | numberOfOrders () const noexcept |
void | numberOfOrders (Quantity value) noexcept |
std::string | toString () const |
void | toString (std::string &) const |
void | swap (PriceLevel &) noexcept |
const OrderInfos & | orders () const noexcept |
void | addOrderId (OrderId id, Quantity quantity) |
void | removeOrderId (OrderId id) |
void | updateOrderId (OrderId id, Quantity quantity) |
Definition at line 48 of file OrderBook.h.
PriceLevel | ( | ) |
Default initialization.
|
explicit |
Initializes the instances according to specified attributes.
PriceLevel | ( | const PriceLevel & | ) |
|
inlinenoexcept |
Price8 value.
Definition at line 232 of file OrderBook.h.
|
inlinenoexcept |
Total number of orders of given price.
Definition at line 256 of file OrderBook.h.
|
inlinenoexcept |
Updates total number of orders.
Definition at line 262 of file OrderBook.h.
PriceLevel & operator= | ( | const PriceLevel & | other | ) |
|
noexcept |
returns list of order IDs for the price level
|
inlinenoexcept |
Quantify for the given price.
Definition at line 244 of file OrderBook.h.
|
inlinenoexcept |
Updates quantity value.
Definition at line 250 of file OrderBook.h.
|
inlinenoexcept |
Updates price value.
Definition at line 238 of file OrderBook.h.
|
noexcept |
swap values
std::string toString | ( | ) | const |
Returns string representation of the instance.
void toString | ( | std::string & | ) | const |
Appends representation of the instance to the string.