amath  1.8.5
Simple command line calculator
EulersNumberNode Class Reference

Use of Euler's number in a syntax tree. More...

#include <values.h>

Inheritance diagram for EulersNumberNode:
Collaboration diagram for EulersNumberNode:

Public Member Functions

 EulersNumberNode ()
 
ReductionType GetReductionType ()
 
- Public Member Functions inherited from NumericValueNode
 NumericValueNode ()
 
 NumericValueNode (Number *value)
 
int GetPrecedence ()
 
char * GetText ()
 
SyntaxNodeGetNext ()
 
NumberEvaluate ()
 
void Attach (SyntaxNode *node)
 
void Detach (SyntaxNode *node)
 
void Replace (SyntaxNode *n, SyntaxNode *x)
 
void ReplaceWith (Number *value)
 
- Public Member Functions inherited from ExpressionNode
 ExpressionNode ()
 
 ExpressionNode (Number *value)
 
virtual ~ExpressionNode ()
 
NodeType GetNodeType ()
 
virtual bool IsSilent ()
 
char * GetTextCode ()
 
char * Execute ()
 
- Public Member Functions inherited from SyntaxNode
 SyntaxNode ()
 
virtual ~SyntaxNode ()
 
void SetFirstNode ()
 
bool GetFirstNode () const
 
SyntaxNodeGetParent () const
 
void SetParent (SyntaxNode *node)
 
virtual void ResetIterator ()
 

Protected Member Functions

char * GetNodeText ()
 

Additional Inherited Members

- Protected Attributes inherited from ExpressionNode
Numberresult
 
- Protected Attributes inherited from SyntaxNode
CharBufferoutput
 
SyntaxNodeparent
 
SyntaxNodeiterator
 
bool leftBottom
 

Detailed Description

Use of Euler's number in a syntax tree.

Definition at line 174 of file values.h.

Constructor & Destructor Documentation

◆ EulersNumberNode()

EulersNumberNode::EulersNumberNode ( )

Definition at line 437 of file values.cpp.

References NumericValueNode::NumericValueNode(), and RealNumber::RealNumber().

Referenced by Parser::ParseAtomic().

437  :
439 {
440 }
#define EULERS
Definition: mathr.h:50
Represent a real number with 15 significant digits.
Definition: real.h:45
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ GetNodeText()

char * EulersNumberNode::GetNodeText ( )
protectedvirtual

Reimplemented from NumericValueNode.

Definition at line 447 of file values.cpp.

448 {
449  static char* ret = (char*)"e";
450  return ret;
451 }

◆ GetReductionType()

ReductionType EulersNumberNode::GetReductionType ( )
virtual

Reimplemented from NumericValueNode.

Definition at line 442 of file values.cpp.

References nonereduc.

443 {
444  return nonereduc;
445 }

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