|
Milo
0.1
Milo:EquationManipulationProgram
|
#include <nodes.h>


Public Member Functions | |
| void | getNumber (Parser &p) |
Constructor and Virtual Destructor | |
| Number (Parser &p, Node *parent) | |
| Number (std::string real, Node *parent, bool neg=false, Node::Select s=Node::Select::NONE) | |
| Number (int n, Node *parent, bool neg=false, Node::Select s=Node::Select::NONE) | |
| Number (double d, Node *parent, bool neg=false, Node::Select s=Node::Select::NONE) | |
| Number (EqnXMLParser &in, Node *parent) | |
| ~Number () | |
Virtual Public Member Functions | |
| std::string | toString () const |
| const std::string & | getName () const |
| std::type_index | getType () const |
| bool | simplify () |
Public Member Functions inherited from Node | |
| void | calculateSize (UI::Graphics &gc) |
| void | out (XML::Stream &xml) |
| void | calculateOrigin (UI::Graphics &gc, int x, int y) |
| void | setUpDraw (UI::Graphics &gc) |
| void | draw (UI::Graphics &gc) const |
| void | setSelect (Select s) |
| Select | getSelect () const |
| void | setDrawParenthesis (bool fDrawPar) |
| bool | getDrawParenthesis () const |
| const Frame & | getFrame () const |
| Node * | first () |
| Node * | last () |
| Node * | getNextLeft () |
| Node * | getNextRight () |
| void | setParent (Node *parent) |
| Node * | getParent () const |
| int | getDepth () const |
| int | getNth () const |
| void | addNth (int n) |
| void | multNth (int n) |
| void | setNth (int n) |
| void | negative () |
| bool | getSign () const |
| Complex | getValue () const |
| std::shared_ptr< Node > | getSharedPtr () |
| Node (Node *parent=nullptr, bool fNeg=false, Select s=NONE) | |
| Node (EqnXMLParser &in, Node *parent) | |
| virtual | ~Node () |
| Abstract base class needs virtual desctructor. | |
| virtual bool | isLeaf () const |
| virtual bool | isFactor () const |
| virtual Node * | findNode (int x, int y) |
| virtual Node * | findNode (const Box &b) |
| virtual int | numFactors () const |
| virtual void | normalize () |
| virtual bool | less (NodePtr b) const |
Static Public Member Functions | |
| static Number * | parse (Parser &p, Node *parent) |
Static Public Member Functions inherited from Node | |
| static bool | createNodeByName (std::string name, Equation &eqn) |
Static Public Attributes | |
| static const std::string | name = "number" |
| Name of Number class. | |
| static const std::type_index | type = typeid(Number) |
| Type of Number class. | |
Static Public Attributes inherited from Node | |
| static const std::vector< std::string > | select_tags = { "NONE", "START", "END", "ALL" } |
Private Attributes | |
| double | m_value |
| Value of Number. | |
| bool | m_isInteger |
| True, if integer. | |
| Box | m_internal |
| Bounding box of this node. | |
Virtual Private Member Functions | |
| static std::string | getInteger (Parser &p) |
| void | xml_out (XML::Stream &xml) const |
| Frame | calcSize (UI::Graphics &gc) |
| void | calcOrig (UI::Graphics &gc, int x, int y) |
| void | drawNode (UI::Graphics &gc) const |
| Complex | getNodeValue () const |
Additional Inherited Members | |
Public Types inherited from Node | |
| enum | Select { NONE, START, END, ALL } |
Represents a Number factor node that contains a real value. Complex numbers are represented with with the i Constant factor.
|
inline |
Constructor for Number class.
| real | String containing real value. |
| parent | Parent node. |
| neg | If true, node is negative. |
| s | Selection state of node. |
|
inline |
Constructor for Number class.
| n | Integer containing real value. |
| parent | Parent node. |
| neg | If true, node is negative. |
| s | Selection state of node. |
|
inline |
Constructor for Number class.
| d | Double containing real value. |
| parent | Parent node. |
| neg | If true, node is negative. |
| s | Selection state of node. |
| Number::Number | ( | EqnXMLParser & | in, |
| Node * | parent | ||
| ) |
|
inline |
Abstract base class needs virtual destructor.
|
privatevirtual |
Calculate origin of this node offset from the point (x,y) given it.
| gc | Graphics context. |
| x | Horizontal origin. |
| y | Vertical origin. |
Implements Node.
|
privatevirtual |
Calculate size of this node in given graphics context.
| gc | Graphics context. |
Implements Node.
|
privatevirtual |
|
staticprivate |
|
inlinevirtual |
|
inlineprivatevirtual |
|
inlinevirtual |
|
virtual |
Attempt to algebraically simplify the subtree this node is the root.
Reimplemented from Node.
|
virtual |
|
privatevirtual |
1.8.11