OnixS C++ CME Market Data Handler  2.56.0.0
Public Types | Public Member Functions | List of all members
BookSnapshot< BookType > Class Template Reference

Book snapshot. More...

Public Types

typedef BookSnapshot< BookType > This
 Identifies itself as a type.
 
typedef BookType Book
 Explicit alias for book type.
 

Public Member Functions

 BookSnapshot (MarketDepth initialCapacity=0)
 Pre-constructs book of given capacity.
 
template<class Other >
 BookSnapshot (const Other &other, MarketDepth maxDepth=static_cast< MarketDepth >(-1))
 Constructs instance as compatible copy (optionally limited by depth) of given instance. More...
 
 ~BookSnapshot ()
 Deletes holding book instance.
 
 operator Book & ()
 Casts snapshot to book type (mutable case).
 
 operator const Book & () const
 Casts snapshot to book type (immutable case).
 
Bookbook ()
 Returns reference to underlying book.
 
const Bookbook () const
 Returns reference to underlying book.
 
template<class Other >
Thisoperator= (const Other &other)
 Re-initializes snapshot as compatible copy of the other instance. More...
 
template<class OtherBook >
Thisassign (const OtherBook &otherBook, MarketDepth maxDepth=MarketDepthTraits::MaxDepth)
 Re-initializes snapshot as compatible copy of the other instance with ability to limit number of layers to be copied. More...
 
template<class OtherBook >
Thisassign (const BookSnapshot< OtherBook > &other, MarketDepth maxDepth=MarketDepthTraits::MaxDepth)
 Re-initializes snapshot as compatible copy of the other instance with ability to limit number of layers to be copied. More...
 

Detailed Description

template<class BookType>
class OnixS::CME::MarketData::BookSnapshot< BookType >

Book snapshot.

Manages instance of order book for storing and coping purposes.

Constructor & Destructor Documentation

BookSnapshot ( const Other &  other,
MarketDepth  maxDepth = static_cast<MarketDepth>(-1) 
)
inline

Constructs instance as compatible copy (optionally limited by depth) of given instance.

Member Function Documentation

This& assign ( const OtherBook &  otherBook,
MarketDepth  maxDepth = MarketDepthTraits::MaxDepth 
)
inline

Re-initializes snapshot as compatible copy of the other instance with ability to limit number of layers to be copied.

This& assign ( const BookSnapshot< OtherBook > &  other,
MarketDepth  maxDepth = MarketDepthTraits::MaxDepth 
)
inline

Re-initializes snapshot as compatible copy of the other instance with ability to limit number of layers to be copied.

This& operator= ( const Other &  other)
inline

Re-initializes snapshot as compatible copy of the other instance.