www.mooseframework.org
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:
[legend]

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 93 of file ExpressionBuilder.h.

Constructor & Destructor Documentation

◆ EBSymbolNode()

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

Definition at line 98 of file ExpressionBuilder.h.

98 : _symbol(symbol){};

Member Function Documentation

◆ clone()

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

Implements ExpressionBuilder::EBTermNode.

Definition at line 99 of file ExpressionBuilder.h.

99 { return new EBSymbolNode(_symbol); }

◆ precedence()

virtual int ExpressionBuilder::EBSymbolNode::precedence ( ) const
inlinevirtual

Implements ExpressionBuilder::EBTermNode.

Definition at line 102 of file ExpressionBuilder.h.

102 { return 0; }

◆ stringify()

std::string ExpressionBuilder::EBSymbolNode::stringify ( ) const
virtual

◆ substitute()

virtual unsigned int ExpressionBuilder::EBTermNode::substitute ( const EBSubstitutionRuleList )
inlinevirtualinherited

Member Data Documentation

◆ _symbol

std::string ExpressionBuilder::EBSymbolNode::_symbol
private

Definition at line 95 of file ExpressionBuilder.h.

Referenced by stringify().


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