teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Core number used for computing in the calculator. More...
#include <number.h>
Public Types | |
typedef Number< IntT, FloatT > | Num |
Public Member Functions | |
Number () | |
Number (IntT v) | |
Number (FloatT v) | |
Number (const Num &n) | |
Number (const std::string &str) | |
const Num & | operator= (const Num &n) |
Num & | operator+ () |
Num & | operator- () |
const Num & | operator+= (const Num &b) |
const Num & | operator-= (const Num &b) |
const Num & | operator*= (const Num &b) |
const Num & | operator/= (const Num &b) |
bool | operator== (const Num &b) const |
bool | operator!= (const Num &b) const |
bool | operator< (const Num &b) const |
bool | operator<= (const Num &b) const |
bool | operator> (const Num &b) const |
bool | operator>= (const Num &b) const |
Num | toInt () const |
Num | toFloat () const |
Public Attributes | |
union { | |
IntT i | |
FloatT f | |
}; | |
bool | isInt |
Static Public Attributes | |
static const Num | e |
static const Num | pi |
static const Num | nan |
static const Num | log2e |
static const Num | log10e |
static const Num | sqrt2 |
static const Num | sqrt1_2 |
Core number used for computing in the calculator.
IntT | integer type |
FloatT | float type |
typedef Number<IntT, FloatT> teditor::calc::Number< IntT, FloatT >::Num |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
union { ... } |
actual value stored
|
static |
FloatT teditor::calc::Number< IntT, FloatT >::f |
IntT teditor::calc::Number< IntT, FloatT >::i |
bool teditor::calc::Number< IntT, FloatT >::isInt |
whether the storage is currently via int or float
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |