www.mooseframework.org
Public Member Functions | Protected Member Functions | List of all members
ExpressionBuilder::EBSubstitutionRuleTyped< Node_T > Class Template Referenceabstract

Substitution rule base class that applies to nodes of type Node_T. More...

#include <ExpressionBuilder.h>

Inheritance diagram for ExpressionBuilder::EBSubstitutionRuleTyped< Node_T >:
[legend]

Public Member Functions

virtual EBTermNodeapply (const EBTermNode *) const
 

Protected Member Functions

virtual EBTermNodesubstitute (const Node_T &) const =0
 

Detailed Description

template<class Node_T>
class ExpressionBuilder::EBSubstitutionRuleTyped< Node_T >

Substitution rule base class that applies to nodes of type Node_T.

Definition at line 309 of file ExpressionBuilder.h.

Member Function Documentation

◆ apply()

template<class Node_T >
ExpressionBuilder::EBTermNode * ExpressionBuilder::EBSubstitutionRuleTyped< Node_T >::apply ( const EBTermNode node) const
virtual

Implements ExpressionBuilder::EBSubstitutionRule.

Definition at line 694 of file ExpressionBuilder.h.

696 {
697  const Node_T * match_node = dynamic_cast<const Node_T *>(node);
698  if (match_node == NULL)
699  return NULL;
700  else
701  return substitute(*match_node);
702 }
virtual EBTermNode * substitute(const Node_T &) const =0

◆ substitute()

template<class Node_T>
virtual EBTermNode* ExpressionBuilder::EBSubstitutionRuleTyped< Node_T >::substitute ( const Node_T &  ) const
protectedpure virtual

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