44 template <class Entry>
78 Messaging::Int32 lastQty_{0};
116 std::size_t
size() const noexcept
129 assert(index < ids_.size());
139 template <
class Entry>
140 void add(
const Entry& entry)
142 ids_.emplace_back(entry.orderId(), entry.lastQty());
157 ids_.reserve(capacity);
161 using Ids = std::vector<TradeOrderDetails>;
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_NODISCARD
Identifies an order involved in a trade and records its executed quantity.
TradeOrderDetails(OrderId orderId, Messaging::Int32 lastQty) noexcept
Constructs details with the specified order identifier and executed quantity.
OrderId orderId() const noexcept
Gets the identifier of the order involved in the trade.
Messaging::Int32 lastQty() const noexcept
Gets the quantity executed for the order by the trade.
TradeOrderDetails() noexcept=default
Constructs details with a zero order identifier and quantity.
void clear() noexcept
Removes all order details while retaining the allocated storage.
void add(const Entry &entry)
Appends order details obtained from a market data entry.
TradeOrderIds() noexcept=default
Constructs an empty collection without reserving storage.
TradeOrderDetails Details
Type used to describe each order involved in the trade.
const Details & operator[](std::size_t index) const noexcept
Accesses order details without runtime bounds checking.
bool empty() const noexcept
Checks whether the collection contains no order details.
std::size_t size() const noexcept
Gets the number of order details in the collection.
void reserve(std::size_t capacity)
Reserves storage for at least the specified number of order details.
Messaging::UInt64 OrderId
Identifies an order in a Market By Order book.