Public Member Functions | Private Attributes | List of all members
ExpressionBuilder::EBSymbolNode Class Reference

Template class for leaf nodes holding symbols (i.e. variables) in the expression tree. More...

#include <ExpressionBuilder.h>

Inheritance diagram for ExpressionBuilder::EBSymbolNode:

Public Member Functions

 EBSymbolNode (std::string symbol)
virtual EBSymbolNodeclone () const
virtual std::string stringify () const
virtual int precedence () const
virtual unsigned int substitute (const EBSubstitutionRuleList &)

Private Attributes

std::string _symbol

Detailed Description

Template class for leaf nodes holding symbols (i.e. variables) in the expression tree.

Definition at line 90 of file ExpressionBuilder.h.

Constructor & Destructor Documentation

ExpressionBuilder::EBSymbolNode::EBSymbolNode ( std::string  symbol)

Definition at line 95 of file ExpressionBuilder.h.

95 : _symbol(symbol){};

Member Function Documentation

virtual EBSymbolNode* ExpressionBuilder::EBSymbolNode::clone ( ) const

Implements ExpressionBuilder::EBTermNode.

Definition at line 96 of file ExpressionBuilder.h.

96 { return new EBSymbolNode(_symbol); }
virtual int ExpressionBuilder::EBSymbolNode::precedence ( ) const
std::string ExpressionBuilder::EBSymbolNode::stringify ( ) const
virtual unsigned int ExpressionBuilder::EBTermNode::substitute ( const EBSubstitutionRuleList )

Member Data Documentation

std::string ExpressionBuilder::EBSymbolNode::_symbol

Definition at line 92 of file ExpressionBuilder.h.

Referenced by stringify().

The documentation for this class was generated from the following files: