www.mooseframework.org
Public Member Functions | Private Attributes | List of all members
ExpressionBuilder::EBNumberNode< T > Class Template Reference

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

#include <ExpressionBuilder.h>

Inheritance diagram for ExpressionBuilder::EBNumberNode< T >:
[legend]

Public Member Functions

 EBNumberNode (T value)
 
virtual EBNumberNode< T > * clone () const
 
virtual std::string stringify () const
 
virtual int precedence () const
 
virtual unsigned int substitute (const EBSubstitutionRuleList &)
 

Private Attributes

_value
 

Detailed Description

template<typename T>
class ExpressionBuilder::EBNumberNode< T >

Template class for leaf nodes holding numbers in the expression tree.

Definition at line 80 of file ExpressionBuilder.h.

Constructor & Destructor Documentation

◆ EBNumberNode()

template<typename T >
ExpressionBuilder::EBNumberNode< T >::EBNumberNode ( value)
inline

Definition at line 85 of file ExpressionBuilder.h.

Member Function Documentation

◆ clone()

template<typename T >
virtual EBNumberNode<T>* ExpressionBuilder::EBNumberNode< T >::clone ( ) const
inlinevirtual

◆ precedence()

template<typename T >
virtual int ExpressionBuilder::EBNumberNode< T >::precedence ( ) const
inlinevirtual

Implements ExpressionBuilder::EBTermNode.

Definition at line 89 of file ExpressionBuilder.h.

89 { return 0; }

◆ stringify()

template<typename T >
std::string ExpressionBuilder::EBNumberNode< T >::stringify ( ) const
virtual

Implements ExpressionBuilder::EBTermNode.

Definition at line 685 of file ExpressionBuilder.h.

686 {
687  std::ostringstream s;
688  s << std::setprecision(12) << _value;
689  return s.str();
690 }

◆ substitute()

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

Member Data Documentation

◆ _value

template<typename T >
T ExpressionBuilder::EBNumberNode< T >::_value
private

Definition at line 82 of file ExpressionBuilder.h.


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