Currency

Undocumented in source.

Members

Functions

check_range
void check_range()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Currency opBinary(Currency rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Currency opBinary(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinaryRight
Currency opBinaryRight(T left)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
T opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(Currency x)
Undocumented in source. Be warned that the author may not have intended to support it.
opCmp
int opCmp(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Currency x)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(Currency rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opOpAssign
void opOpAssign(T rhs)
Undocumented in source. Be warned that the author may not have intended to support it.
opUnary
Currency opUnary()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
verify
bool verify()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

UNIT
enum UNIT;
Undocumented in source.

Mixins

__anonymous
mixin HiBONRecord!(q{ this(T)(T whole) pure if (isFloatingPoint!T) { scope(exit) { check_range; } _units = cast(long)(whole * BASE_UNIT); } this(T)(const T units) pure if (isIntegral!T) { scope(exit) { check_range; } _units = units; } })
Undocumented in source.

Properties

axios
long axios [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
units
long units [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
value
double value [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
whole
long whole [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

toValue
string toValue(long units)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

BASE_UNIT
enum long BASE_UNIT;
Undocumented in source.
UNIT_MAX
enum long UNIT_MAX;
Undocumented in source.
_units
long _units;
Undocumented in source.

Mixed In Members

From mixin HiBONRecord!(q{ this(T)(T whole) pure if (isFloatingPoint!T) { scope(exit) { check_range; } _units = cast(long)(whole * BASE_UNIT); } this(T)(const T units) pure if (isIntegral!T) { scope(exit) { check_range; } _units = units; } })

check
alias check = Check!(HiBONRecordException)
Undocumented in source.
__anonymous
mixin JSONString
Undocumented in source.
__anonymous
mixin HiBONRecordType
Undocumented in source.
isRecord
alias isRecord = HiBONRecord.isRecord!ThisType
Undocumented in source.
HAS_TYPE
enum HAS_TYPE;
Undocumented in source.
less_than
bool less_than(Key a, Key b)
Undocumented in source. Be warned that the author may not have intended to support it.
toHiBON
inout(HiBON) toHiBON()
Undocumented in source. Be warned that the author may not have intended to support it.
NO_DEFAULT_CTOR
enum NO_DEFAULT_CTOR;
Undocumented in source.
GetKeyName
template GetKeyName(uint i)
Undocumented in source.
_keys
string[] _keys()
keys
enum keys;
Undocumented in source.
this
this(HiBON hibon)
Undocumented in source.
this
this(Document doc)
Undocumented in source.
serialize
immutable(ubyte[]) serialize()
Undocumented in source. Be warned that the author may not have intended to support it.
toDoc
const(Document) toDoc()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta