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

Constructor & Destructor Documentation

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

Definition at line 111 of file ExpressionBuilder.h.

111 : _id(id){};

Member Function Documentation

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

Implements ExpressionBuilder::EBTermNode.

Definition at line 112 of file ExpressionBuilder.h.

112 { return new EBTempIDNode(_id); }
virtual int ExpressionBuilder::EBTempIDNode::precedence ( ) const
inlinevirtual

Implements ExpressionBuilder::EBTermNode.

Definition at line 115 of file ExpressionBuilder.h.

115 { return 0; }
std::string ExpressionBuilder::EBTempIDNode::stringify ( ) const
virtual

Implements ExpressionBuilder::EBTermNode.

Definition at line 47 of file ExpressionBuilder.C.

48 {
49  std::ostringstream s;
50  s << '[' << _id << ']';
51  return s.str();
52 }
virtual unsigned int ExpressionBuilder::EBTermNode::substitute ( const EBSubstitutionRuleList )
inlinevirtualinherited

Member Data Documentation

unsigned long ExpressionBuilder::EBTempIDNode::_id
private

Definition at line 108 of file ExpressionBuilder.h.


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