58 void numberOfOrders (
Quantity value);
61 std::string toString()
const;
64 void toString (std::string&)
const;
125 typedef std::vector<PriceLevel>
Array;
161 virtual UInt32 lastMsgSeqNumProcessed()
const = 0;
164 size_t depth()
const;
170 virtual const PriceLevels& asks()
const = 0;
173 virtual const PriceLevels& bids()
const = 0;
182 virtual UInt64 mdEntryTime ()
const = 0;
185 std::string toString()
const;
188 void toString (std::string&)
const;
191 std::string toShortString()
const;
194 void toShortString (std::string&)
const;
197 std::string toFormattedString()
const;
200 void toFormattedString (std::string&)
const;
207 void*
operator new (
size_t bookSize);
211 void operator delete (
void* book);
246 return bids().empty() && asks().empty();
271 toFormattedString (str);
bool operator==(const FieldValueRef &ref, const std::string &str)
PriceLevelCollections::ArrayEntry PriceLevelsEntry
Iterator to access price levels with write permissions.
Quantity numberOfOrders() const
Total number of orders of given price.
std::vector< PriceLevel > Array
Sequential collection of price levels.
Encapsulates price level concept.
std::ostream & operator<<(std::ostream &os, const Message &message)
PriceLevels PriceLevelsType
Decimal price() const
Price value.
bool empty() const
Indicates whether book has no bids & asks.
Decimal type for better precision.
std::string toString() const
Returns string representation of the instance.
SecurityId securityId() const
PriceLevelCollections::Array PriceLevels
Sequence of price levels.
Int64 SecurityId
Alias for Security Id type.
void checkSanity(const OrderBook &book)
checks whether the given book is properly built
std::string toFormattedString() const
Returns formatted presentation of the book.
size_t depth() const
Returns the maximum book depth.
Array::iterator ArrayEntry
Mutable entry iterator.
PriceLevelCollections::ArrayConstEntry PriceLevelsConstEntry
Iterator over read-only collection of price levels.
std::string toString() const
String presentation of the book.
Quantity quantity() const
Quantify for the given price.
UInt64 Quantity
Alias for Quantity type.
Miscellaneous traits for PriceLevel class.
std::string toShortString() const
Returns brief book info.
bool isValid(const PriceLevel &level)
Array::const_iterator ArrayConstEntry
Iterator for read-only access.