Helios++
Helios software for LiDAR simulations
|
Interface extending the Binary Tree node definition to become a Expression Tree node. Any class providing expression tree node based functionalities must implement the IExprTreeNode, which implies it must also implement the IBinaryTreeNode interface. More...
#include <IExprTreeNode.h>
Public Member Functions | |
virtual OutputType | eval (InputType const x) const =0 |
Evaluate the given node. In doing so, children nodes will be evaluated if necessary. More... | |
![]() | |
virtual IBinaryTreeNode * | getLeftChild () const =0 |
Obtain the left child of current node. More... | |
virtual IBinaryTreeNode * | getRightChild () const =0 |
Obtain the right child of current node. More... | |
virtual bool | isLeafNode () const |
Check whether current node is a leaf node (true) or not (false) More... | |
Interface extending the Binary Tree node definition to become a Expression Tree node. Any class providing expression tree node based functionalities must implement the IExprTreeNode, which implies it must also implement the IBinaryTreeNode interface.
InputType | The input type to be used by the expression tree |
OutputType | The output type produced by evaluation the expression tree |
|
pure virtual |
Evaluate the given node. In doing so, children nodes will be evaluated if necessary.
x | The variable \(x\) for the evaluation of the expression tree |
Implemented in UnivarExprTreeNode< NumericType >.