67 const bool releasePool_;
78 typedef SortedOrders::size_type
Depth;
106 , state_(other.
state())
110 bids_ = other.
bids();
193 state_ = other.
state();
195 bids_ = other.
bids();
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
~MboBookBase()
Releases memory pool according to policy.
MboBookBase(MemoryPool &sharedPool)
Binds to given memory pool.
MemoryPoolAllocator< Order > OrderAllocator
Instantiates allocator using MemoryPool for orders.
MboBookBase()
Initializes with privately maintained memory pool.
OrderAllocator allocator() const
Allocator over memory pool.
~MboBook()
Disposes allocated resources.
const Entries & operator[](const Bids &) const
List of descending bid prices.
SortedOrders::size_type Depth
Book depth type.
const Entries & offers() const
List of ascending offer prices.
Entries & operator[](const Offers &)
List of ascending offer prices.
Entries::const_iterator EntryIterator
Iterator over bids and offers.
Entries & offers()
List of ascending offer prices.
void reset(BookState::Enum bookState)
MboBook(MemoryPool &pool)
Initializes book using given memory pool.
void state(BookState::Enum state)
Updates state of book.
MboBook & operator=(const MboBook &other)
Re-initializes as copy of other instance.
const Entries & bids() const
List of descending bid prices.
SortedOrders Entries
Sorted orders are book entries.
MboBook()
Initializes blank order book.
Entries & bids()
List of descending bid prices.
const Entries & operator[](const Offers &) const
List of ascending offer prices.
Entries & operator[](const Bids &)
List of descending bid prices.
Order Entry
Order as book entry.
MboBook(const MboBook &other)
Initializes as copy of other book.
BookState::Enum state() const
Indicates current state of book.
Adapts a MemoryPool for use as a standard allocator.
Allocates and reclaims raw memory blocks.
Represents an order in a Market By Order (MBO) book.
std::list< Order, MemoryPoolAllocator< Order > > SortedOrders
Arranged collection of orders.
void toFormattedStr(std::string &str, const ConsolidatedBook &book)
Appends a human-readable formatted serialization of a consolidated book to a string.
void brief(std::string &str, const ConsolidatedBook &book)
Appends a compact summary of a consolidated book to a string.
MemoryPool * makeMemoryPool(const MemoryPoolSettings &settings)
Creates a memory pool using the supplied settings.
MboBook & copy(MboBook &target, const MboBook &source)
Copies content of MBO book to the other one.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.
Tag type that selects the bid side of a book.
Describes the lifecycle state of an order book.
Enum
Known order book states.
Tag type that selects the offer side of a book.