MFClient  1.3.0
 All Classes Functions Variables Enumerations
Public Member Functions | Static Public Attributes | List of all members
PriceSize Class Reference

#include <PriceSize.hpp>

Public Member Functions

 PriceSize ()
 Default constructor that initializes price and quantity to 0.
 
 PriceSize (sbe_int64_t price_, sbe_int64_t quantity_)
 The constructor that initializes price and quantity to the passed values. More...
 
 PriceSize (const PriceSize &p2)
 A deep copy Copy Constructor More...
 
void setPrice (sbe_int64_t price_)
 Set a new price value More...
 
void setQuantity (sbe_int64_t quantity_)
 Set a new quantity value More...
 
std::string toString ()
 Stringize PriceSize showing stringized decimals.
 
std::string toRawString ()
 Stringize PriceSize showing the raw data member price and quantity values.
 
double priceToDouble ()
 Get the double representation of price.
 
double quantityToDouble ()
 Get the double representation of quantity.
 
template<typename T >
std::string ToString (T val)
 Stringize a type using the standard sstream formatting.
 

Static Public Attributes

static const int64_t QTY_EXPONENT = 5
 The number of decimal places in the quantity type.
 
static const int64_t PRICE_EXPONENT = 9
 The number of decimal places in the price type.
 

Detailed Description

========================================================================

Price and Size holder - indexed by price

Constructor & Destructor Documentation

PriceSize::PriceSize ( sbe_int64_t  price_,
sbe_int64_t  quantity_ 
)
inline

The constructor that initializes price and quantity to the passed values.

PriceSize::PriceSize ( const PriceSize p2)
inline

A deep copy Copy Constructor

Member Function Documentation

void PriceSize::setPrice ( sbe_int64_t  price_)
inline

Set a new price value

void PriceSize::setQuantity ( sbe_int64_t  quantity_)
inline

Set a new quantity value


The documentation for this class was generated from the following file: