amath
1.8.5
Simple command line calculator
|
Set number of significant digits to show. More...
#include <digits.h>
Public Member Functions | |
DigitsStatement () | |
Constructor used to show number of active digits. More... | |
DigitsStatement (unsigned int digits) | |
Constructor used to show number of active digits. More... | |
~DigitsStatement () | |
char * | Execute () |
Public Member Functions inherited from StatementNode | |
StatementNode () | |
StatementNode (const char *text) | |
virtual | ~StatementNode () |
NodeType | GetNodeType () |
virtual SyntaxNode * | GetNext () |
virtual char * | GetTextCode () |
void | Attach (SyntaxNode *node) |
void | Detach (SyntaxNode *node) |
void | Replace (SyntaxNode *n, SyntaxNode *x) |
Public Member Functions inherited from SyntaxNode | |
SyntaxNode () | |
virtual | ~SyntaxNode () |
void | SetFirstNode () |
bool | GetFirstNode () const |
SyntaxNode * | GetParent () const |
void | SetParent (SyntaxNode *node) |
virtual ReductionType | GetReductionType () |
virtual void | ResetIterator () |
Private Attributes | |
bool | show |
unsigned int | digits |
Additional Inherited Members | |
Protected Attributes inherited from StatementNode | |
char * | statementText |
Protected Attributes inherited from SyntaxNode | |
CharBuffer * | output |
SyntaxNode * | parent |
SyntaxNode * | iterator |
bool | leftBottom |
DigitsStatement::DigitsStatement | ( | ) |
Constructor used to show number of active digits.
Definition at line 42 of file digits.cpp.
References digits, show, and StatementNode::StatementNode().
Referenced by Parser::ParseDigistStatement().
|
explicit |
Constructor used to show number of active digits.
Definition at line 53 of file digits.cpp.
References digits, show, and StatementNode::StatementNode().
Referenced by Parser::ParseDigistStatement().
DigitsStatement::~DigitsStatement | ( | ) |
Definition at line 59 of file digits.cpp.
|
virtual |
Implements StatementNode.
Definition at line 63 of file digits.cpp.
References CharBuffer::Append(), DecimalSystem::DecimalSystem(), digits, CharBuffer::Empty(), CharBuffer::EnsureSize(), NumeralSystem::GetDigits(), CharBuffer::GetString(), NumeralSystem::GetText(), Program::Input, Program::Output, SyntaxNode::output, Program::Preferences, RealNumber::RealNumber(), PreferencesBase::SetDigits(), NumeralSystem::SetDigits(), show, and StrLen().
|
private |
Definition at line 49 of file digits.h.
Referenced by DigitsStatement(), and Execute().
|
private |
Definition at line 48 of file digits.h.
Referenced by DigitsStatement(), and Execute().