36 const bool releasePool_;
96 SortedOrders::size_type
104 Entries::const_iterator
135 , state_(other.state())
137 , offers_(allocator())
139 bids_ = other.
bids();
244 state_ = other.
state();
246 bids_ = other.
bids();
265 ONIXS_CMEMDH_EXPORTED
285 ONIXS_CMEMDH_EXPORTED
305 ONIXS_CMEMDH_EXPORTED
Order Entry
Order as book entry.
#define ONIXS_CMEMDH_LTWT_CLASS
std::string toStr(const MboBook &book)
Serializes book.
~MboBook()
Disposes allocated resources.
ONIXS_CMEMDH_EXPORTED MemoryPool * makeMemoryPool(size_t, size_t, size_t, size_t)
MboBookBase()
Initializes with privately maintained memory pool.
std::list< Order, MemoryPoolAllocator< Order >> SortedOrders
Arranged collection of orders.
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)
BookState::Enum state() const
Indicates current state of book.
Entries::const_iterator EntryIterator
Iterator over bids and offers.
MboBook(MemoryPool &pool)
Initializes book using given memory pool.
Order as the member of the Market By Order (MBO) book.
MemoryPoolAllocator< Order > OrderAllocator
Instantiates allocator using MemoryPool for orders.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
std::string brief(const MboBook &book)
Book brief info.
MboBookBase(MemoryPool &sharedPool)
Binds to given memory pool.
SortedOrders::size_type Depth
Book depth type.
MboBook()
Initializes blank order book.
~MboBookBase()
Releases memory pool according to policy.
const Entries & bids() const
List of descending bid prices.
void state(BookState::Enum state)
Updates state of book.
void copy(MboBook &target, const MboBook &source)
Copies content of MBO book to the other one.
virtual void release()=0
Releases given instance.
Entries & bids()
List of descending bid prices.
Entries & offers()
List of ascending offer prices.
Tag class for accessing offers in templates.
std::string toFormattedStr(const MboBook &book)
Serializes book in formatted form.
const Entries & offers() const
List of ascending offer prices.
MboBook(const MboBook &other)
Initializes as copy of other book.
#define ONIXS_CMEMDH_NAMESPACE_END