#include <boundednumber.h>
Public Methods | |
| Integer () | |
| Default constructor. More... | |
| Integer (value_type val) | |
| Constructs using specified value. More... | |
| Integer (const self& other) | |
| Copy constructor. More... | |
| template<classOT, LargeIntOMaxVal, LargeIntOMinVal, classOBoundary> | Integer<OT, OMaxVal, OMinVal, OBoundary> (const Float<OT,OMaxVal,OMinVal,OBoundary>& other) |
| Construct from a Bounded::Float. More... | |
| void | operator= (const LargeInt& val) |
| Set to a numeric value; assumes LargeInt is an encompassing type. More... | |
| self& | operator *= (const LargeFloat m) |
| Multiplicative scaling. More... | |
| self | operator+ (const self &B) const |
| Integer addition. More... | |
| Magnitude | mag () const |
| Returns the current numeric value as a fraction of the maximum. More... | |
| value_type | raw () const |
| Returns the current numeric value in the native units. More... | |
Static Public Attributes | |
| const value_type | Min = MinVal |
| Minimum legal value. More... | |
| const value_type | Max = MaxVal |
| Maximum legal value. More... | |
The template can be instantiated for any integral type smaller than or equal to type LargeInt.
Definition at line 93 of file boundednumber.h.
|
||||
|
Default constructor.
Definition at line 112 of file boundednumber.h. |
|
||||
|
Constructs using specified value.
Definition at line 113 of file boundednumber.h. |
|
||||
|
Copy constructor.
Definition at line 114 of file boundednumber.h. |
|
||||||
|
Construct from a Bounded::Float.
Definition at line 119 of file boundednumber.h. |
|
||||
|
Returns the current numeric value as a fraction of the maximum.
Definition at line 137 of file boundednumber.h. |
|
||||
|
Multiplicative scaling.
Definition at line 126 of file boundednumber.h. |
|
||||
|
Integer addition.
Definition at line 129 of file boundednumber.h. |
|
||||
|
Set to a numeric value; assumes LargeInt is an encompassing type.
Definition at line 123 of file boundednumber.h. |
|
||||
|
Returns the current numeric value in the native units.
Definition at line 140 of file boundednumber.h. |
|
|||
|
Maximum legal value.
Definition at line 110 of file boundednumber.h. |
|
|||
|
Minimum legal value.
Definition at line 109 of file boundednumber.h. |
1.2.1 written by Dimitri van Heesch,
© 1997-2000