Files Classes Functions Hierarchy
#include <rpn.h>
Public Member Functions | |
| rpncomplex () | |
| rpncomplex (deque< rpnbase * > &ds, long double const x, long double const y) | |
| rpncomplex (deque< rpnbase * > &ds, complex< long double > const &x) | |
| ~rpncomplex () | |
| rpnbase * | copy () const |
| void | accept (deque< rpnbase * > &ds, rpnfunction &f) |
| ostream & | print (ostream &os) const |
| string const | name () const |
| bool const | iscomplex () const |
Public Attributes | |
| complex< long double > | num |
Definition at line 124 of file rpn.h.
| rpncomplex::rpncomplex | ( | ) | [inline] |
| rpncomplex::rpncomplex | ( | deque< rpnbase * > & | ds, | |
| long double const | x, | |||
| long double const | y | |||
| ) |
| rpncomplex::rpncomplex | ( | deque< rpnbase * > & | ds, | |
| complex< long double > const & | x | |||
| ) |
| void rpncomplex::accept | ( | deque< rpnbase * > & | ds, | |
| rpnfunction & | f | |||
| ) | [inline, virtual] |
Reimplemented from rpnbase.
Definition at line 145 of file rpn.h.
References rpnfunction::visit().
00146 { f.visit(ds,*this); }
| rpnbase * rpncomplex::copy | ( | ) | const [virtual] |
Implements rpnbase.
Definition at line 108 of file rpn.cpp.
References num, and rpncomplex().
00109 { 00110 rpncomplex* n = new rpncomplex(); 00111 n->num = num; 00112 00113 return n; 00114 }
| bool const rpncomplex::iscomplex | ( | ) | const [inline, virtual] |
| string const rpncomplex::name | ( | ) | const [inline, virtual] |
| complex< long double > rpncomplex::num |
Definition at line 128 of file rpn.h.
Referenced by copy(), print(), rpndivide::visit(), rpnsubtract::visit(), rpnmultiply::visit(), rpnadd::visit(), rpnneg::visit(), rpnfconj::visit(), rpnfimag::visit(), rpnfnorm::visit(), rpnfarg::visit(), rpnfabs::visit(), rpnftanh::visit(), rpnfcosh::visit(), rpnfsinh::visit(), rpnfsqrt::visit(), rpnfexp::visit(), rpnflog10::visit(), rpnflog::visit(), rpnftan::visit(), rpnfsin::visit(), rpnfcos::visit(), rpnpow::visit(), and rpnrealconvert::visit().
1.5.8