www.mooseframework.org
Public Member Functions | Private Attributes | List of all members
ExpressionBuilder::EBTempIDNode Class Reference

Template class for leaf nodes holding anonymous IDs in the expression tree. More...

#include <ExpressionBuilder.h>

Inheritance diagram for ExpressionBuilder::EBTempIDNode:
[legend]

Public Member Functions

 EBTempIDNode (unsigned int id)
 
virtual EBTempIDNodeclone () const
 
virtual std::string stringify () const
 
virtual int precedence () const
 
virtual unsigned int substitute (const EBSubstitutionRuleList &)
 

Private Attributes

unsigned long _id
 

Detailed Description

Template class for leaf nodes holding anonymous IDs in the expression tree.

No such node must be left in the final expression that is serialized and passed to FParser

Definition at line 109 of file ExpressionBuilder.h.

Constructor & Destructor Documentation

◆ EBTempIDNode()

ExpressionBuilder::EBTempIDNode::EBTempIDNode ( unsigned int  id)
inline

Definition at line 114 of file ExpressionBuilder.h.

114 : _id(id){};

Member Function Documentation

◆ clone()

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

Implements ExpressionBuilder::EBTermNode.

Definition at line 115 of file ExpressionBuilder.h.

115 { return new EBTempIDNode(_id); }

◆ precedence()

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

Implements ExpressionBuilder::EBTermNode.

Definition at line 118 of file ExpressionBuilder.h.

118 { return 0; }

◆ stringify()

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

Implements ExpressionBuilder::EBTermNode.

Definition at line 50 of file ExpressionBuilder.C.

51 {
52  std::ostringstream s;
53  s << '[' << _id << ']';
54  return s.str();
55 }

◆ substitute()

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

Member Data Documentation

◆ _id

unsigned long ExpressionBuilder::EBTempIDNode::_id
private

Definition at line 111 of file ExpressionBuilder.h.


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