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


Public Member Functions | |
Constructor and Virtual Destructor | |
| Differential (Parser &p, Node *parent) | |
| Differential (EqnXMLParser &in, Node *parent) | |
| ~Differential () | |
Virtual Public Member Functions | |
| bool | isLeaf () const |
| int | numFactors () const |
| Node * | findNode (int x, int y) |
| Node * | findNode (const Box &b) |
| std::string | toString () const |
| const std::string & | getName () const |
| std::type_index | getType () const |
| void | normalize () |
| 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 | isFactor () const |
| virtual bool | less (NodePtr b) const |
Static Public Member Functions | |
| static Differential * | 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 = "differential" |
| Name of Differential class. | |
| static const std::type_index | type = typeid(Differential) |
| Type of Differential class. | |
Static Public Attributes inherited from Node | |
| static const std::vector< std::string > | select_tags = { "NONE", "START", "END", "ALL" } |
Private Member Functions | |
Virtual Private Member Functions | |
| Node * | downLeft () |
| Node * | downRight () |
| 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 |
Private Attributes | |
| Box | m_internal |
| Bounding box of this node. | |
| char | m_variable |
| Variable of Differential. | |
| NodePtr | m_function |
| Function to be differentiated. | |
Additional Inherited Members | |
Public Types inherited from Node | |
| enum | Select { NONE, START, END, ALL } |
Represents a differential of an expression to a variable.
Constructor for Differential class.
| p | Parser object. |
| parent | Parent node. |
| Differential::Differential | ( | EqnXMLParser & | in, |
| Node * | parent | ||
| ) |
XML constructor for Differential class. Read in XML for Differential class.
| in | XML input stream. |
| parent | Parent node object. |
|
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.
|
inlineprivatevirtual |
Get left node. For Differential class left most node of function argument.
Reimplemented from Node.
|
inlineprivatevirtual |
Get right node. For Differential class right most node of function argument.
Reimplemented from Node.
|
privatevirtual |
|
inlinevirtual |
Rescursive search to find deepest node at point (x,y).
| x | horizontal coordinate. |
| y | vertical coordinate. |
Reimplemented from Node.
Recursive function to return first node from a top to bottom search whose frame is inside Box b.
| b | Bounding box. |
Reimplemented from Node.
|
inlinevirtual |
|
inlineprivatevirtual |
|
inlinevirtual |
|
inlinevirtual |
Override for isLeaf virtual function.
Reimplemented from Node.
|
inlinevirtual |
Refactor subtree to a standard form. For Differential class, normalize function argument.
Reimplemented from Node.
|
inlinevirtual |
|
static |
Get Differential object from Parser.
| p | Parser object. |
| parent | Parent for new Differential object. |
|
inlinevirtual |
Attempt to algebraically simplify the subtree this node is the root.
Reimplemented from Node.
|
virtual |
|
privatevirtual |
1.8.11