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
TradeOrderDetails()
Initializes blank instance with no valid attributes.
OrderId orderId() const
Returns the order identifier.
TradeOrderDetails(const Entry &entry)
void reserve(size_t capacity)
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)
~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.