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

Member Function Documentation

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

Implements ExpressionBuilder::EBSubstitutionRule.

Definition at line 691 of file ExpressionBuilder.h.

693 {
694  const Node_T * match_node = dynamic_cast<const Node_T *>(node);
695  if (match_node == NULL)
696  return NULL;
697  else
698  return substitute(*match_node);
699 }
virtual EBTermNode * substitute(const Node_T &) const =0
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: