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)
Wipes out all bids and offers and other data associated with book (like instance of last applied FIX ...
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.
Order as the member of the Market By Order (MBO) book.
void toFormattedStr(std::string &, const ConsolidatedBook &)
Serializes book in formatted form.
std::list< Order, MemoryPoolAllocator< Order > > SortedOrders
Arranged collection of orders.
MboBook & copy(MboBook &target, const MboBook &source)
Copies content of MBO book to the other one.
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
MemoryPool * makeMemoryPool(size_t, size_t, size_t, size_t)
Constructs a memory pool instance according to the given configuration.
void brief(std::string &, const ConsolidatedBook &)
Book brief info.
Tag class for accessing bids in templates.
Tag class for accessing offers in templates.