23#include <unordered_map>
38 using BookEntries = std::unordered_map<BookEntryId, OrderPtr>;
59 using Mutex = std::recursive_mutex;
60 using Guard = std::lock_guard<Mutex>;
Performs automatic acquisition and release of a synchronization object.
OptionalRef< CrossOrder > findCross(BookEntryId id)
Finds a cross order.
std::unordered_map< BookEntryId, CrossOrderPtr > Id2crossOrderMap
OrdersList getEntries(std::function< bool(const Order &)> predicate=[](const Order &){ return true;})
std::unordered_map< BookEntryId, OrderPtr > BookEntries
Order & store(OrderPtr entry)
Adds an entry to the book.
Order::OrderId BookEntryId
OptionalRef< Order > find(BookEntryId id)
Finds an instance of the entry by its identifier.
std::vector< OrderPtr > OrdersList
Returns collection of all the entries.
std::shared_ptr< CrossOrder > CrossOrderPtr
std::optional< std::shared_ptr< T > > OptionalRef
Manages an optional contained reference.
std::shared_ptr< Order > OrderPtr
decltype(std::declval< const ExecutionReport_Trade & >().orderId()) OrderId