Files Classes Functions Hierarchy
#include <mathfunc.h>
Public Member Functions | |
| string const | name () const |
| void | visit (deque< rpnbase * > &ds, rpncomplex &n) |
| rpnfarg () | |
| rpnfarg (deque< rpnbase * > &ds, bool const evaluate=true) | |
| ~rpnfarg () | |
| rpnbase * | copy () const |
Definition at line 434 of file mathfunc.h.
| rpnfarg::rpnfarg | ( | ) | [inline] |
Definition at line 450 of file mathfunc.h.
References rpnfunction::eval().
00451 { 00452 if (evaluate) 00453 eval(ds); 00454 else 00455 ds.push_front(this); 00456 }
| rpnfarg::~rpnfarg | ( | ) | [inline] |
| rpnbase* rpnfarg::copy | ( | ) | const [inline, virtual] |
Reimplemented from rpnfunction.
Definition at line 458 of file mathfunc.h.
References rpnfarg().
00459 { return new rpnfarg(); }
| string const rpnfarg::name | ( | ) | const [inline, virtual] |
| void rpnfarg::visit | ( | deque< rpnbase * > & | ds, | |
| rpncomplex & | n | |||
| ) | [inline, virtual] |
Reimplemented from rpnfunction.
Definition at line 441 of file mathfunc.h.
References rpnbase::dec(), and rpncomplex::num.
00442 { 00443 rpnbase* x0 = ds.front(); 00444 ds.pop_front(); 00445 new rpnreal(ds,arg(n.num)); 00446 x0->dec(); 00447 }
1.5.8