ContextFlags

Members

Functions

checkFlags
void checkFlags(ubyte flags)
Undocumented in source. Be warned that the author may not have intended to support it.
clearFlags
void clearFlags()

Clears all the context flags.

clearTraps
void clearTraps()

Clears all the traps.

getFlags
bool getFlags(ubyte flags)

Gets the value of the specified context flag.

getFlags
ubyte getFlags()

Returns a snapshot of the context flags.

getTrap
bool getTrap(ubyte trap)

Returns the value of the specified trap.

getTraps
ubyte getTraps()

Returns a snapshot of traps.

resetFlags
void resetFlags(ubyte flags)
Undocumented in source. Be warned that the author may not have intended to support it.
set
void set(ubyte flags, bool value)

Sets or resets the specified context flag(s).

setTraps
void setTraps(ubyte traps, bool value)

Sets or resets the specified trap(s).

Meta

Standards

"The exceptional conditions are grouped into signals, which can be controlled individually. The context contains a flag (which is either 0 or 1) and a trap-enabler (which also is either 0 or 1) for each signal. For each of the signals, the corresponding flag is set to 1 when the signal occurs. It is only reset to 0 by explicit user action." General Decimal Arithmetic Specification, p. 15.