62 return OrderAllocator(pool_);
67 const bool releasePool_;
78 typedef SortedOrders::size_type
Depth;
90 , offers_(allocator())
99 , offers_(allocator())
106 , state_(other.state())
108 , offers_(allocator())
110 bids_ = other.
bids();
193 state_ = other.
state();
195 bids_ = other.
bids();
Order Entry
Order as book entry.
~MboBook()
Disposes allocated resources.
MboBookBase()
Initializes with privately maintained memory pool.
OrderAllocator allocator() const
Allocator over memory pool.
SortedOrders Entries
Sorted orders are book entries.
Tag class for accessing bids in templates.
void reset(BookState::Enum bookState)
Wipes out all bids and offers and other data associated with book (like instance of last applied FIX ...
BookState::Enum state() const
Indicates current state of book.
void brief(std::string &, const ConsolidatedBook &)
Book brief info.
Entries::const_iterator EntryIterator
Iterator over bids and offers.
MboBook & operator=(const MboBook &other)
Re-initializes as copy of other instance.
MboBook(MemoryPool &pool)
Initializes book using given memory pool.
Order as the member of the Market By Order (MBO) book.
#define ONIXS_CMEMDH_LTWT
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.
Entries & operator[](const Bids &)
List of descending bid prices.
MemoryPool * makeMemoryPool(size_t, size_t, size_t, size_t)
Constructs a memory pool instance according to the given configuration.
MemoryPoolAllocator< Order > OrderAllocator
Instantiates allocator using MemoryPool for orders.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
MboBookBase(MemoryPool &sharedPool)
Binds to given memory pool.
SortedOrders::size_type Depth
Book depth type.
#define ONIXS_CMEMDH_EXPORTED
Private base for MBO book.
MboBook()
Initializes blank order book.
~MboBookBase()
Releases memory pool according to policy.
void toFormattedStr(std::string &, const ConsolidatedBook &)
Serializes book in formatted form.
const Entries & bids() const
List of descending bid prices.
const Entries & operator[](const Bids &) const
List of descending bid prices.
Entries & operator[](const Offers &)
List of ascending offer prices.
void state(BookState::Enum state)
Updates state of book.
Entries & bids()
List of descending bid prices.
const Entries & operator[](const Offers &) const
List of ascending offer prices.
Entries & offers()
List of ascending offer prices.
Tag class for accessing offers in templates.
const Entries & offers() const
List of ascending offer prices.
MboBook(const MboBook &other)
Initializes as copy of other book.
void toStr(std::string &, BookState::Enum)
Serializes book state value into a string.
#define ONIXS_CMEMDH_NAMESPACE_END