44 template <
class Entry>
46 : orderId_(entry.orderId())
47 , lastQty_(entry.lastQty())
115 assert(index < ids_.size());
121 template <
class Entry>
122 void add(
const Entry& entry)
124 ids_.push_back(Details(entry));
138 ids_.reserve(capacity);
142 typedef std::vector<TradeOrderDetails> Ids;
void add(const Entry &entry)
Adds order details to the collection.
TradeOrderIds(size_t capacity)
Initializes the blank instance capacious enough to store the given number of orders.
Stores information on a trade order like the order identifier and the other details.
#define ONIXS_CMEMDH_LTWT
TradeOrderDetails()
Initializes blank instance with no valid attributes.
Collection of order details referring to a single trade.
TradeOrderDetails(const Entry &entry)
Retrieves order details from the given market data entry.
TradeOrderIds(const TradeOrderIds &other)
Initializes as a copy of the other instance.
TradeOrderIds()
Initializes blank instance.
void clear()
Resets the collection to the blank state.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
size_t size() const
The number of items in the given collection.
const Details & operator[](size_t index) const
Provides access to an item by its index.
Int32 lastQty() const
Returns last quantity for the order referenced by the trade.
bool empty() const
Indicates whether the collection of details is empty.
OrderId orderId() const
Returns the order identifier.
TradeOrderDetails Details
Alias for the trade order details.
void reserve(size_t capacity)
Makes the collection capacious enough to store the given number of items without allocating additiona...
UInt64 OrderId
Type for order identification.
~TradeOrderIds()
Destructs the internal storage.
#define ONIXS_CMEMDH_NAMESPACE_END