#ifndef EXPRESSION_NODE_H #define EXPRESSION_NODE_H #include "tree_node.h" class ExpressionNode : public TreeNode { public: static TreeNode * staticFailedAllocationStaticNode(); TreeNode * failedAllocationStaticNode() override { return staticFailedAllocationStaticNode(); } virtual float approximate() = 0; ExpressionNode * child(int i) { return static_cast(childTreeAtIndex(i)); } }; #endif