oa::Fixed

Fixed class in the OA Core public surface.

Public Methods

Fixed<Decimals> oa::Fixed::abs()
Fixed<Decimals> oa::Fixed::applyPercent(Fixed<Decimals> inPercent)
Fixed<Decimals> oa::Fixed::clamp(Fixed<Decimals> inLo, Fixed<Decimals> inHi)
void oa::Fixed::Fixed<Decimals>()
void oa::Fixed::Fixed<Decimals>(oa::I64 inRaw)
oa::I64 oa::Fixed::getRaw()
bool oa::Fixed::isNegative()
bool oa::Fixed::isPositive()
bool oa::Fixed::isZero()
Fixed<Decimals> oa::Fixed::maxWith(Fixed<Decimals> inOther)
Fixed<Decimals> oa::Fixed::minWith(Fixed<Decimals> inOther)
bool oa::Fixed::operator!=(Fixed<Decimals> inOther)
Fixed<Decimals> oa::Fixed::operator*(Fixed<Decimals> inOther)
Fixed<Decimals> oa::Fixed::operator*(oa::I64 inScalar)
Fixed<Decimals> & oa::Fixed::operator*=(Fixed<Decimals> inOther)
Fixed<Decimals> oa::Fixed::operator+(Fixed<Decimals> inOther)
Fixed<Decimals> & oa::Fixed::operator+=(Fixed<Decimals> inOther)
Fixed<Decimals> oa::Fixed::operator-()
Fixed<Decimals> oa::Fixed::operator-(Fixed<Decimals> inOther)
Fixed<Decimals> & oa::Fixed::operator-=(Fixed<Decimals> inOther)
Fixed<Decimals> oa::Fixed::operator/(Fixed<Decimals> inOther)
Fixed<Decimals> oa::Fixed::operator/(oa::I64 inScalar)
Fixed<Decimals> & oa::Fixed::operator/=(Fixed<Decimals> inOther)
bool oa::Fixed::operator<(Fixed<Decimals> inOther)
bool oa::Fixed::operator<=(Fixed<Decimals> inOther)
bool oa::Fixed::operator==(Fixed<Decimals> inOther)
bool oa::Fixed::operator>(Fixed<Decimals> inOther)
bool oa::Fixed::operator>=(Fixed<Decimals> inOther)
oa::F64 oa::Fixed::toDouble()
oa::F32 oa::Fixed::toFloat()
oa::I64 oa::Fixed::toInt()
oa::String oa::Fixed::toString()

Static Public Methods

static Fixed<Decimals> oa::Fixed::fromBps(oa::I64 inBps)
static Fixed<Decimals> oa::Fixed::fromDouble(oa::F64 inValue)
static Fixed<Decimals> oa::Fixed::fromFloat(oa::F32 inValue)
static Fixed<Decimals> oa::Fixed::fromInt(oa::I64 inValue)
static Fixed<Decimals> oa::Fixed::fromPercent(oa::I64 inPercent)
static Fixed<Decimals> oa::Fixed::fromRaw(oa::I64 inRaw)
static Fixed<Decimals> oa::Fixed::max()
static Fixed<Decimals> oa::Fixed::min()
static Fixed<Decimals> oa::Fixed::one()
static Fixed<Decimals> oa::Fixed::zero()

Public Data Members

kScaleconst oa::I64static
rawoa::I64field

Public Method Documentation

Fixed<Decimals> oa::Fixed::abs()
No public source comment is attached to this declaration.

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> oa::Fixed::applyPercent( Fixed<Decimals> inPercent )
No public source comment is attached to this declaration.

Parameters

inPercent
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> oa::Fixed::clamp( Fixed<Decimals> inLo, Fixed<Decimals> inHi )
No public source comment is attached to this declaration.

Parameters

inLo
Fixed<Decimals>

inHi
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

void oa::Fixed::Fixed<Decimals>()
Constructors.

Returns

void

The declared return value.

void oa::Fixed::Fixed<Decimals>( oa::I64 inRaw )
No public source comment is attached to this declaration.

Parameters

inRaw
oa::I64

Returns

void

The declared return value.

oa::I64 oa::Fixed::getRaw()
No public source comment is attached to this declaration.

Returns

oa::I64

The declared return value.

bool oa::Fixed::isNegative()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

bool oa::Fixed::isPositive()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

bool oa::Fixed::isZero()
No public source comment is attached to this declaration.

Returns

bool

The declared return value.

Fixed<Decimals> oa::Fixed::maxWith( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> oa::Fixed::minWith( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

bool oa::Fixed::operator!=( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

bool

The declared return value.

Fixed<Decimals> oa::Fixed::operator*( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> oa::Fixed::operator*( oa::I64 inScalar )
No public source comment is attached to this declaration.

Parameters

inScalar
oa::I64

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> & oa::Fixed::operator*=( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals> &

The declared return value.

Fixed<Decimals> oa::Fixed::operator+( Fixed<Decimals> inOther )
Operators.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> & oa::Fixed::operator+=( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals> &

The declared return value.

Fixed<Decimals> oa::Fixed::operator-()
No public source comment is attached to this declaration.

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> oa::Fixed::operator-( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> & oa::Fixed::operator-=( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals> &

The declared return value.

Fixed<Decimals> oa::Fixed::operator/( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> oa::Fixed::operator/( oa::I64 inScalar )
No public source comment is attached to this declaration.

Parameters

inScalar
oa::I64

Returns

Fixed<Decimals>

The declared return value.

Fixed<Decimals> & oa::Fixed::operator/=( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

Fixed<Decimals> &

The declared return value.

bool oa::Fixed::operator<( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

bool

The declared return value.

bool oa::Fixed::operator<=( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

bool

The declared return value.

bool oa::Fixed::operator==( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

bool

The declared return value.

bool oa::Fixed::operator>( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

bool

The declared return value.

bool oa::Fixed::operator>=( Fixed<Decimals> inOther )
No public source comment is attached to this declaration.

Parameters

inOther
Fixed<Decimals>

Returns

bool

The declared return value.

oa::F64 oa::Fixed::toDouble()
No public source comment is attached to this declaration.

Returns

oa::F64

The declared return value.

oa::F32 oa::Fixed::toFloat()
No public source comment is attached to this declaration.

Returns

oa::F32

The declared return value.

oa::I64 oa::Fixed::toInt()
No public source comment is attached to this declaration.

Returns

oa::I64

The declared return value.

oa::String oa::Fixed::toString()
No public source comment is attached to this declaration.

Returns

oa::String

The declared return value.

static Fixed<Decimals> oa::Fixed::fromBps( oa::I64 inBps )
No public source comment is attached to this declaration.

Parameters

inBps
oa::I64

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::fromDouble( oa::F64 inValue )
No public source comment is attached to this declaration.

Parameters

inValue
oa::F64

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::fromFloat( oa::F32 inValue )
No public source comment is attached to this declaration.

Parameters

inValue
oa::F32

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::fromInt( oa::I64 inValue )
No public source comment is attached to this declaration.

Parameters

inValue
oa::I64

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::fromPercent( oa::I64 inPercent )
No public source comment is attached to this declaration.

Parameters

inPercent
oa::I64

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::fromRaw( oa::I64 inRaw )
No public source comment is attached to this declaration.

Parameters

inRaw
oa::I64

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::max()
No public source comment is attached to this declaration.

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::min()
No public source comment is attached to this declaration.

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::one()
No public source comment is attached to this declaration.

Returns

Fixed<Decimals>

The declared return value.

static Fixed<Decimals> oa::Fixed::zero()
No public source comment is attached to this declaration.

Returns

Fixed<Decimals>

The declared return value.