webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
WebCore::Decimal Class Reference

#include <Decimal.h>

Classes

class  EncodedData
 

Public Types

enum  Sign { Positive, Negative, Positive, Negative }
 
enum  Sign { Positive, Negative, Positive, Negative }
 

Public Member Functions

 Decimal (int32_t=0)
 
 Decimal (Sign, int exponent, uint64_t coefficient)
 
 Decimal (const Decimal &)
 
Decimaloperator= (const Decimal &)
 
Decimaloperator+= (const Decimal &)
 
Decimaloperator-= (const Decimal &)
 
Decimaloperator*= (const Decimal &)
 
Decimaloperator/= (const Decimal &)
 
Decimal operator- () const
 
bool operator== (const Decimal &) const
 
bool operator!= (const Decimal &) const
 
bool operator< (const Decimal &) const
 
bool operator<= (const Decimal &) const
 
bool operator> (const Decimal &) const
 
bool operator>= (const Decimal &) const
 
Decimal operator+ (const Decimal &) const
 
Decimal operator- (const Decimal &) const
 
Decimal operator* (const Decimal &) const
 
Decimal operator/ (const Decimal &) const
 
int exponent () const
 
bool isFinite () const
 
bool isInfinity () const
 
bool isNaN () const
 
bool isNegative () const
 
bool isPositive () const
 
bool isSpecial () const
 
bool isZero () const
 
Decimal abs () const
 
Decimal ceiling () const
 
Decimal floor () const
 
Decimal remainder (const Decimal &) const
 
Decimal round () const
 
double toDouble () const
 
String toString () const
 
 Decimal (const EncodedData &)
 
const EncodedDatavalue () const
 
 Decimal (int32_t=0)
 
 Decimal (Sign, int exponent, uint64_t coefficient)
 
 Decimal (const Decimal &)
 
Decimaloperator= (const Decimal &)
 
Decimaloperator+= (const Decimal &)
 
Decimaloperator-= (const Decimal &)
 
Decimaloperator*= (const Decimal &)
 
Decimaloperator/= (const Decimal &)
 
Decimal operator- () const
 
bool operator== (const Decimal &) const
 
bool operator!= (const Decimal &) const
 
bool operator< (const Decimal &) const
 
bool operator<= (const Decimal &) const
 
bool operator> (const Decimal &) const
 
bool operator>= (const Decimal &) const
 
Decimal operator+ (const Decimal &) const
 
Decimal operator- (const Decimal &) const
 
Decimal operator* (const Decimal &) const
 
Decimal operator/ (const Decimal &) const
 
int exponent () const
 
bool isFinite () const
 
bool isInfinity () const
 
bool isNaN () const
 
bool isNegative () const
 
bool isPositive () const
 
bool isSpecial () const
 
bool isZero () const
 
Decimal abs () const
 
Decimal ceiling () const
 
Decimal floor () const
 
Decimal remainder (const Decimal &) const
 
Decimal round () const
 
double toDouble () const
 
String toString () const
 
 Decimal (const EncodedData &)
 
const EncodedDatavalue () const
 

Static Public Member Functions

static Decimal fromDouble (double)
 
static Decimal fromString (const String &)
 
static Decimal infinity (Sign)
 
static Decimal nan ()
 
static Decimal zero (Sign)
 
static Decimal fromDouble (double)
 
static Decimal fromString (const String &)
 
static Decimal infinity (Sign)
 
static Decimal nan ()
 
static Decimal zero (Sign)
 

Member Enumeration Documentation

◆ Sign [1/2]

Enumerator
Positive 
Negative 
Positive 
Negative 

◆ Sign [2/2]

Enumerator
Positive 
Negative 
Positive 
Negative 

Constructor & Destructor Documentation

◆ Decimal() [1/8]

WebCore::Decimal::Decimal ( int32_t  i32 = 0)

◆ Decimal() [2/8]

WebCore::Decimal::Decimal ( Sign  sign,
int  exponent,
uint64_t  coefficient 
)

◆ Decimal() [3/8]

WebCore::Decimal::Decimal ( const Decimal other)

◆ Decimal() [4/8]

WebCore::Decimal::Decimal ( const EncodedData data)
explicit

◆ Decimal() [5/8]

WebCore::Decimal::Decimal ( int32_t  = 0)

◆ Decimal() [6/8]

WebCore::Decimal::Decimal ( Sign  ,
int  exponent,
uint64_t  coefficient 
)

◆ Decimal() [7/8]

WebCore::Decimal::Decimal ( const Decimal )

◆ Decimal() [8/8]

WebCore::Decimal::Decimal ( const EncodedData )
explicit

Member Function Documentation

◆ abs() [1/2]

Decimal WebCore::Decimal::abs ( ) const

◆ abs() [2/2]

Decimal WebCore::Decimal::abs ( ) const

◆ ceiling() [1/2]

Decimal WebCore::Decimal::ceiling ( ) const

◆ ceiling() [2/2]

Decimal WebCore::Decimal::ceiling ( ) const

◆ exponent() [1/2]

int WebCore::Decimal::exponent ( ) const
inline

◆ exponent() [2/2]

int WebCore::Decimal::exponent ( ) const
inline

◆ floor() [1/2]

Decimal WebCore::Decimal::floor ( ) const

◆ floor() [2/2]

Decimal WebCore::Decimal::floor ( ) const

◆ fromDouble() [1/2]

Decimal WebCore::Decimal::fromDouble ( double  doubleValue)
static

◆ fromDouble() [2/2]

static Decimal WebCore::Decimal::fromDouble ( double  )
static

◆ fromString() [1/2]

Decimal WebCore::Decimal::fromString ( const String str)
static

◆ fromString() [2/2]

static Decimal WebCore::Decimal::fromString ( const String )
static

◆ infinity() [1/2]

Decimal WebCore::Decimal::infinity ( Sign  sign)
static

◆ infinity() [2/2]

static Decimal WebCore::Decimal::infinity ( Sign  )
static

◆ isFinite() [1/2]

bool WebCore::Decimal::isFinite ( ) const
inline

◆ isFinite() [2/2]

bool WebCore::Decimal::isFinite ( ) const
inline

◆ isInfinity() [1/2]

bool WebCore::Decimal::isInfinity ( ) const
inline

◆ isInfinity() [2/2]

bool WebCore::Decimal::isInfinity ( ) const
inline

◆ isNaN() [1/2]

bool WebCore::Decimal::isNaN ( ) const
inline

◆ isNaN() [2/2]

bool WebCore::Decimal::isNaN ( ) const
inline

◆ isNegative() [1/2]

bool WebCore::Decimal::isNegative ( ) const
inline

◆ isNegative() [2/2]

bool WebCore::Decimal::isNegative ( ) const
inline

◆ isPositive() [1/2]

bool WebCore::Decimal::isPositive ( ) const
inline

◆ isPositive() [2/2]

bool WebCore::Decimal::isPositive ( ) const
inline

◆ isSpecial() [1/2]

bool WebCore::Decimal::isSpecial ( ) const
inline

◆ isSpecial() [2/2]

bool WebCore::Decimal::isSpecial ( ) const
inline

◆ isZero() [1/2]

bool WebCore::Decimal::isZero ( ) const
inline

◆ isZero() [2/2]

bool WebCore::Decimal::isZero ( ) const
inline

◆ nan() [1/2]

static Decimal WebCore::Decimal::nan ( )
static

◆ nan() [2/2]

Decimal WebCore::Decimal::nan ( )
static

◆ operator!=() [1/2]

bool WebCore::Decimal::operator!= ( const Decimal rhs) const

◆ operator!=() [2/2]

bool WebCore::Decimal::operator!= ( const Decimal ) const

◆ operator*() [1/2]

Decimal WebCore::Decimal::operator* ( const Decimal rhs) const

◆ operator*() [2/2]

Decimal WebCore::Decimal::operator* ( const Decimal ) const

◆ operator*=() [1/2]

Decimal & WebCore::Decimal::operator*= ( const Decimal other)

◆ operator*=() [2/2]

Decimal& WebCore::Decimal::operator*= ( const Decimal )

◆ operator+() [1/2]

Decimal WebCore::Decimal::operator+ ( const Decimal ) const

◆ operator+() [2/2]

Decimal WebCore::Decimal::operator+ ( const Decimal rhs) const

◆ operator+=() [1/2]

Decimal & WebCore::Decimal::operator+= ( const Decimal other)

◆ operator+=() [2/2]

Decimal& WebCore::Decimal::operator+= ( const Decimal )

◆ operator-() [1/4]

Decimal WebCore::Decimal::operator- ( ) const

◆ operator-() [2/4]

Decimal WebCore::Decimal::operator- ( ) const

◆ operator-() [3/4]

Decimal WebCore::Decimal::operator- ( const Decimal rhs) const

◆ operator-() [4/4]

Decimal WebCore::Decimal::operator- ( const Decimal ) const

◆ operator-=() [1/2]

Decimal& WebCore::Decimal::operator-= ( const Decimal )

◆ operator-=() [2/2]

Decimal & WebCore::Decimal::operator-= ( const Decimal other)

◆ operator/() [1/2]

Decimal WebCore::Decimal::operator/ ( const Decimal rhs) const

◆ operator/() [2/2]

Decimal WebCore::Decimal::operator/ ( const Decimal ) const

◆ operator/=() [1/2]

Decimal& WebCore::Decimal::operator/= ( const Decimal )

◆ operator/=() [2/2]

Decimal & WebCore::Decimal::operator/= ( const Decimal other)

◆ operator<() [1/2]

bool WebCore::Decimal::operator< ( const Decimal rhs) const

◆ operator<() [2/2]

bool WebCore::Decimal::operator< ( const Decimal ) const

◆ operator<=() [1/2]

bool WebCore::Decimal::operator<= ( const Decimal rhs) const

◆ operator<=() [2/2]

bool WebCore::Decimal::operator<= ( const Decimal ) const

◆ operator=() [1/2]

Decimal & WebCore::Decimal::operator= ( const Decimal other)

◆ operator=() [2/2]

Decimal& WebCore::Decimal::operator= ( const Decimal )

◆ operator==() [1/2]

bool WebCore::Decimal::operator== ( const Decimal ) const

◆ operator==() [2/2]

bool WebCore::Decimal::operator== ( const Decimal rhs) const

◆ operator>() [1/2]

bool WebCore::Decimal::operator> ( const Decimal rhs) const

◆ operator>() [2/2]

bool WebCore::Decimal::operator> ( const Decimal ) const

◆ operator>=() [1/2]

bool WebCore::Decimal::operator>= ( const Decimal rhs) const

◆ operator>=() [2/2]

bool WebCore::Decimal::operator>= ( const Decimal ) const

◆ remainder() [1/2]

Decimal WebCore::Decimal::remainder ( const Decimal ) const

◆ remainder() [2/2]

Decimal WebCore::Decimal::remainder ( const Decimal rhs) const

◆ round() [1/2]

Decimal WebCore::Decimal::round ( ) const

◆ round() [2/2]

Decimal WebCore::Decimal::round ( ) const

◆ toDouble() [1/2]

double WebCore::Decimal::toDouble ( ) const

◆ toDouble() [2/2]

double WebCore::Decimal::toDouble ( ) const

◆ toString() [1/2]

String WebCore::Decimal::toString ( ) const

◆ toString() [2/2]

String WebCore::Decimal::toString ( ) const

◆ value() [1/2]

const EncodedData& WebCore::Decimal::value ( ) const
inline

◆ value() [2/2]

const EncodedData& WebCore::Decimal::value ( ) const
inline

◆ zero() [1/2]

static Decimal WebCore::Decimal::zero ( Sign  )
static

◆ zero() [2/2]

Decimal WebCore::Decimal::zero ( Sign  sign)
static

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