77 constexpr bool exist() const noexcept
79 return (direct_->exist() || implied_->exist());
90 return (direct_->exist() ? direct_->price() : implied_->price());
101 return (direct_->quantity() + implied_->quantity());
180 toStr(str, priceLevel);
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_EXPORTED
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_NODISCARD
Represents one consolidated book price level.
void consolidate(const ImpliedPriceLevel &implied) noexcept
Replaces the implied component price level reference.
constexpr ConsolidatedPriceLevel(const ConsolidatedPriceLevel &other) noexcept=default
Constructs a price level as a copy of another instance.
constexpr ConsolidatedPriceLevel(const DirectPriceLevel &direct, const ImpliedPriceLevel &implied) noexcept
Constructs a price level from direct and implied book data.
constexpr bool exist() const noexcept
Checks whether direct or implied data exists at this level.
ConsolidatedPriceLevel & operator=(const ConsolidatedPriceLevel &other) noexcept=default
Replaces this price level with a copy of another instance.
ConsolidatedPriceLevel & operator=(ConsolidatedPriceLevel &&other) noexcept=default
Replaces this price level by moving another instance.
constexpr ConsolidatedPriceLevel() noexcept=default
Constructs a price level with no consolidated data.
constexpr ConsolidatedPriceLevel(ConsolidatedPriceLevel &&other) noexcept=default
Constructs a price level by moving another instance.
constexpr MbpBookQuantity quantity() const noexcept
Gets the consolidated aggregate quantity.
constexpr const ImpliedPriceLevel & implied() const noexcept
Gets the implied component price level.
constexpr const DirectPriceLevel & direct() const noexcept
Gets the direct component price level.
void consolidate(const DirectPriceLevel &direct) noexcept
Replaces the direct component price level reference.
constexpr ConsolidatedPriceLevel(const ImpliedPriceLevel &implied) noexcept
Constructs a price level from implied book data only.
~ConsolidatedPriceLevel()=default
Destroys the price level.
constexpr const Messaging::Decimal & price() const noexcept
Gets the consolidated price.
Represents one direct book price level.
Represents one implied book price level.
constexpr bool exist() const noexcept
Checks whether the price level is present in the book.
FloatingPointDecimal< DecimalMantissa, DecimalExponent > Decimal
Universal decimal type.
Messaging::Int64 MbpBookQuantity
Represents an aggregate quantity at a market-by-price level.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.