amath  1.8.5
Simple command line calculator
PiNode Class Reference

Use of PI in a syntax tree. More...

#include <values.h>

Inheritance diagram for PiNode:
Collaboration diagram for PiNode:

Public Member Functions

 PiNode ()
 
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 PI in a syntax tree.

Definition at line 188 of file values.h.

Constructor & Destructor Documentation

◆ PiNode()

PiNode::PiNode ( )

Definition at line 457 of file values.cpp.

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

Referenced by Parser::ParseAtomic().

457  :
459 {
460 }
Represent a real number with 15 significant digits.
Definition: real.h:45
#define PI
Definition: mathr.h:49
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ GetNodeText()

char * PiNode::GetNodeText ( )
protectedvirtual

Reimplemented from NumericValueNode.

Definition at line 467 of file values.cpp.

468 {
469  static char* ret = (char*)"pi";
470  return ret;
471 }

◆ GetReductionType()

ReductionType PiNode::GetReductionType ( )
virtual

Reimplemented from NumericValueNode.

Definition at line 462 of file values.cpp.

References nonereduc.

463 {
464  return nonereduc;
465 }

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