44 template <
class Entry>
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;
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_NAMESPACE_END
Stores information on a trade order like the order identifier and the other details.
TradeOrderDetails()
Initializes blank instance with no valid attributes.
Int32 lastQty() const
Returns last quantity for the order referenced by the trade.
OrderId orderId() const
Returns the order identifier.
TradeOrderDetails(const Entry &entry)
Retrieves order details from the given market data entry.
void reserve(size_t capacity)
Makes the collection capacious enough to store the given number of items without allocating additiona...
void add(const Entry &entry)
Adds order details to the collection.
size_t size() const
The number of items in the given collection.
TradeOrderIds(size_t capacity)
Initializes the blank instance capacious enough to store the given number of orders.
~TradeOrderIds()
Destructs the internal storage.
bool empty() const
Indicates whether the collection of details is empty.
TradeOrderIds(const TradeOrderIds &other)
Initializes as a copy of the other instance.
TradeOrderIds()
Initializes blank instance.
TradeOrderDetails Details
Alias for the trade order details.
const Details & operator[](size_t index) const
Provides access to an item by its index.
void clear()
Resets the collection to the blank state.
UInt64 OrderId
Type for order identification.