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

Constructor & Destructor Documentation

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

Definition at line 82 of file ExpressionBuilder.h.

Member Function Documentation

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

Implements ExpressionBuilder::EBTermNode.

Definition at line 86 of file ExpressionBuilder.h.

86 { return 0; }
template<typename T >
std::string ExpressionBuilder::EBNumberNode< T >::stringify ( ) const
virtual

Implements ExpressionBuilder::EBTermNode.

Definition at line 682 of file ExpressionBuilder.h.

683 {
684  std::ostringstream s;
685  s << std::setprecision(12) << _value;
686  return s.str();
687 }
virtual unsigned int ExpressionBuilder::EBTermNode::substitute ( const EBSubstitutionRuleList )
inlinevirtualinherited

Member Data Documentation

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

Definition at line 79 of file ExpressionBuilder.h.


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