#include <OnixS/CME/MDH/TradeOrderIds.h>
Public Types | |
| using | Details = TradeOrderDetails |
Public Member Functions | |
| TradeOrderIds () noexcept=default | |
| TradeOrderIds (std::size_t capacity) | |
| bool | empty () const noexcept |
| std::size_t | size () const noexcept |
| const Details & | operator[] (std::size_t index) const noexcept |
| template<class Entry> | |
| void | add (const Entry &entry) |
| void | clear () noexcept |
| void | reserve (std::size_t capacity) |
The CME Market Data Platform sends detailed information on the trade in addition to the trade summary. All details on orders are gathered by the Handler during market data processing and exposed through the appropriate callbacks.
Definition at line 87 of file TradeOrderIds.h.
| using Details = TradeOrderDetails |
Type used to describe each order involved in the trade.
Definition at line 91 of file TradeOrderIds.h.
|
defaultnoexcept |
Constructs an empty collection without reserving storage.
|
inlineexplicit |
Constructs an empty collection with storage reserved for a number of orders.
| capacity | Number of order details that can be added without reallocating storage. |
| Any | exception thrown by std::vector::reserve, including std::length_error or std::bad_alloc when the requested storage cannot be reserved. |
Definition at line 100 of file TradeOrderIds.h.
|
inline |
Appends order details obtained from a market data entry.
| Entry | Market data entry type providing orderId() and lastQty(). |
| entry | Entry containing the order identifier and executed quantity to append. |
| Any | exception thrown while obtaining or converting the entry attributes or growing the underlying std::vector. |
Definition at line 140 of file TradeOrderIds.h.
|
inlinenoexcept |
Removes all order details while retaining the allocated storage.
Definition at line 146 of file TradeOrderIds.h.
|
inlinenoexcept |
Checks whether the collection contains no order details.
Definition at line 108 of file TradeOrderIds.h.
|
inlinenoexcept |
Accesses order details without runtime bounds checking.
| index | Zero-based index of the details to access. |
Definition at line 127 of file TradeOrderIds.h.
|
inline |
Reserves storage for at least the specified number of order details.
| capacity | Number of details that can subsequently be stored without reallocation. |
| Any | exception thrown by std::vector::reserve, including std::length_error or std::bad_alloc when the requested storage cannot be reserved. |
Definition at line 155 of file TradeOrderIds.h.
|
inlinenoexcept |
Gets the number of order details in the collection.
Definition at line 116 of file TradeOrderIds.h.