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

Substitution rule to replace all occurences of log(x) with plog(x, epsilon) with a user defined term for epsilon. More...

#include <ExpressionBuilder.h>

Inheritance diagram for ExpressionBuilder::EBLogPlogSubstitution:
[legend]

Public Member Functions

 EBLogPlogSubstitution (const EBTerm &epsilon)
 
virtual ~EBLogPlogSubstitution ()
 
virtual EBTermNodeapply (const EBTermNode *) const
 

Protected Member Functions

virtual EBTermNodesubstitute (const EBUnaryFuncTermNode &) const
 

Protected Attributes

EBTermNode_epsilon
 

Detailed Description

Substitution rule to replace all occurences of log(x) with plog(x, epsilon) with a user defined term for epsilon.

Definition at line 336 of file ExpressionBuilder.h.

Constructor & Destructor Documentation

ExpressionBuilder::EBLogPlogSubstitution::EBLogPlogSubstitution ( const EBTerm epsilon)
inline

Definition at line 339 of file ExpressionBuilder.h.

339  : _epsilon(epsilon.cloneRoot())
340  {
341  mooseAssert(_epsilon != NULL, "Epsilon must not be an empty term in EBLogPlogSubstitution");
342  }
virtual ExpressionBuilder::EBLogPlogSubstitution::~EBLogPlogSubstitution ( )
inlinevirtual

Definition at line 343 of file ExpressionBuilder.h.

Member Function Documentation

virtual EBTermNode* ExpressionBuilder::EBSubstitutionRuleTyped< EBUnaryFuncTermNode >::apply ( const EBTermNode ) const
virtualinherited
ExpressionBuilder::EBTermNode * ExpressionBuilder::EBLogPlogSubstitution::substitute ( const EBUnaryFuncTermNode node) const
protectedvirtual

Implements ExpressionBuilder::EBSubstitutionRuleTyped< EBUnaryFuncTermNode >.

Definition at line 466 of file ExpressionBuilder.C.

467 {
468  if (node._type == EBUnaryFuncTermNode::LOG)
469  return new EBBinaryFuncTermNode(
470  node.getSubnode()->clone(), _epsilon->clone(), EBBinaryFuncTermNode::PLOG);
471  else
472  return NULL;
473 }
virtual EBTermNode * clone() const =0

Member Data Documentation

EBTermNode* ExpressionBuilder::EBLogPlogSubstitution::_epsilon
protected

Definition at line 346 of file ExpressionBuilder.h.


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