teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Namespaces | |
ops | |
Classes | |
class | CalcMode |
struct | Number |
Core number used for computing in the calculator. More... | |
struct | Parser |
Typedefs | |
typedef std::unordered_map< std::string, Num64 > | VarMap |
typedef Number< int32_t, float > | Num32 |
typedef Number< int64_t, double > | Num64 |
typedef std::stack< Num64 > | NumStack |
Enumerations | |
enum | Tokens { IVal = 0, FVal, BrktOpen, BrktClose, Var, Equals, Plus, Minus, Mul, Div, Exp, Func, Space, SemiColon } |
Functions | |
VarMap & | vars () |
History & | cmds () |
void | addCmd (const std::string &c) |
REGISTER_MODE (CalcMode, "calc") | |
CONST (e, M_E) | |
CONST (pi, M_PI) | |
CONST (nan, NAN) | |
CONST (log2e, M_LOG2E) | |
CONST (log10e, M_LOG10E) | |
CONST (sqrt2, M_SQRT2) | |
CONST (sqrt1_2, M_SQRT1_2) | |
template<typename I , typename F > | |
Number< I, F > | operator+ (const Number< I, F > &a, const Number< I, F > &b) |
template<typename I , typename F > | |
Number< I, F > | operator- (const Number< I, F > &a, const Number< I, F > &b) |
template<typename I , typename F > | |
Number< I, F > | operator* (const Number< I, F > &a, const Number< I, F > &b) |
template<typename I , typename F > | |
Number< I, F > | operator/ (const Number< I, F > &a, const Number< I, F > &b) |
FUNC (sq) | |
FUNC (cube) | |
FP_FUNC (abs) | |
FP_FUNC (sin) | |
FP_FUNC (tan) | |
FP_FUNC (asin) | |
FP_FUNC (atan) | |
FP_FUNC (sinh) | |
FP_FUNC (tanh) | |
FP_FUNC (asinh) | |
FP_FUNC (atanh) | |
FP_FUNC (sqrt) | |
FP_FUNC (cbrt) | |
FP_FUNC (log) | |
FP_FUNC (log10) | |
FP_FUNC (exp) | |
FP_FUNC (floor) | |
FP_FUNC (ceil) | |
FP_FUNC (round) | |
template<typename I , typename F > | |
Number< I, F > | toInt (const Number< I, F > &a) |
template<typename I , typename F > | |
Number< I, F > | toFloat (const Number< I, F > &a) |
FP_FUNC2 (pow) | |
FP_FUNC2 (hypot) | |
parser::Lexer & | getLexer () |
typedef Number<int32_t, float> teditor::calc::Num32 |
typedef Number<int64_t, double> teditor::calc::Num64 |
typedef std::stack<Num64> teditor::calc::NumStack |
typedef std::unordered_map< std::string, Num64 > teditor::calc::VarMap |
void teditor::calc::addCmd | ( | const std::string & | c | ) |
History & teditor::calc::cmds | ( | ) |
teditor::calc::CONST | ( | e | , |
M_E | |||
) |
teditor::calc::CONST | ( | log10e | , |
M_LOG10E | |||
) |
teditor::calc::CONST | ( | log2e | , |
M_LOG2E | |||
) |
teditor::calc::CONST | ( | nan | , |
NAN | |||
) |
teditor::calc::CONST | ( | pi | , |
M_PI | |||
) |
teditor::calc::CONST | ( | sqrt1_2 | , |
M_SQRT1_2 | |||
) |
teditor::calc::CONST | ( | sqrt2 | , |
M_SQRT2 | |||
) |
teditor::calc::FP_FUNC | ( | abs | ) |
teditor::calc::FP_FUNC | ( | asin | ) |
teditor::calc::FP_FUNC | ( | asinh | ) |
teditor::calc::FP_FUNC | ( | atan | ) |
teditor::calc::FP_FUNC | ( | atanh | ) |
teditor::calc::FP_FUNC | ( | cbrt | ) |
teditor::calc::FP_FUNC | ( | ceil | ) |
teditor::calc::FP_FUNC | ( | exp | ) |
teditor::calc::FP_FUNC | ( | floor | ) |
teditor::calc::FP_FUNC | ( | log | ) |
teditor::calc::FP_FUNC | ( | log10 | ) |
teditor::calc::FP_FUNC | ( | round | ) |
teditor::calc::FP_FUNC | ( | sin | ) |
teditor::calc::FP_FUNC | ( | sinh | ) |
teditor::calc::FP_FUNC | ( | sqrt | ) |
teditor::calc::FP_FUNC | ( | tan | ) |
teditor::calc::FP_FUNC | ( | tanh | ) |
teditor::calc::FP_FUNC2 | ( | hypot | ) |
teditor::calc::FP_FUNC2 | ( | pow | ) |
teditor::calc::FUNC | ( | cube | ) |
teditor::calc::FUNC | ( | sq | ) |
parser::Lexer& teditor::calc::getLexer | ( | ) |
Number<I, F> teditor::calc::operator* | ( | const Number< I, F > & | a, |
const Number< I, F > & | b | ||
) |
Number<I, F> teditor::calc::operator+ | ( | const Number< I, F > & | a, |
const Number< I, F > & | b | ||
) |
Number<I, F> teditor::calc::operator- | ( | const Number< I, F > & | a, |
const Number< I, F > & | b | ||
) |
Number<I, F> teditor::calc::operator/ | ( | const Number< I, F > & | a, |
const Number< I, F > & | b | ||
) |
teditor::calc::REGISTER_MODE | ( | CalcMode | , |
"calc" | |||
) |
VarMap & teditor::calc::vars | ( | ) |