70 : direct_(other.direct_)
71 , implied_(other.implied_)
82 return (direct_->exist() || implied_->exist());
88 return (direct_->exist() ? direct_->price() : implied_->price());
94 return (direct_->quantity() + implied_->quantity());
136 if (direct_->exist())
149 direct_ = other.direct_;
150 implied_ = other.implied_;
176 toStr(str, priceLevel);
std::string toStr(const ConsolidatedPriceLevel &priceLevel)
Serializes price level attributes into a string.
Encapsulates price level concept.
ConsolidatedPriceLevel & operator=(const ConsolidatedPriceLevel &other)
Re-initializes instance as copy of other one.
ConsolidatedPriceLevel(const DirectPriceLevel &direct, const ImpliedPriceLevel &implied)
Initializes instance from both direct and implied price levels.
void consolidate(const DirectPriceLevel &direct)
Consolidates direct price level data part.
#define ONIXS_CMEMDH_LTWT
const DirectPriceLevel & direct() const
Reference to price level from direct book consolidated into given instance.
ConsolidatedPriceLevel(const ImpliedPriceLevel &implied)
Initializes instance from implied price level only.
~ConsolidatedPriceLevel()
Finalizes instance.
Encapsulates price level concept.
void consolidate(const ImpliedPriceLevel &implied)
Consolidates implied price level data part.
Price level data attributes of bid or ask of consolidated order book.
A real number with floating exponent.
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
Int32 quantity() const
Quantity component.
ConsolidatedPriceLevel(const DirectPriceLevel &direct)
Initializes instance from direct price level only.
#define ONIXS_CMEMDH_EXPORTED
bool exist() const
Indicates whether instance has a valid data and actually exists at the level accessed.
#define ONIXS_CMEMDH_LTWT_EXPORTED
ConsolidatedPriceLevel()
Initializes instance indicating absence of consolidated data.
const ImpliedPriceLevel & implied() const
Reference to price level from implied book consolidated into given instance.
const Decimal & price() const
Price component.
ConsolidatedPriceLevel(const ConsolidatedPriceLevel &other)
Initializes instance as copy of the other one.
#define ONIXS_CMEMDH_NAMESPACE_END