amath
1.8.5
Simple command line calculator
|
Base class for all numeral systems. More...
#include <ntext.h>
Public Member Functions | |
NumeralSystem () | |
virtual | ~NumeralSystem () |
virtual const char * | GetName ()=0 |
virtual const char * | GetPrefix ()=0 |
virtual unsigned int | GetDigits ()=0 |
virtual void | SetDigits (unsigned int digits)=0 |
virtual const char | GetFractionPoint ()=0 |
virtual void | SetFractionPoint (const char fractionPoint)=0 |
virtual const char * | GetText (Number *number)=0 |
virtual Number * | Parse (const char *text, unsigned int *length, char **end)=0 |
virtual Number * | Parse (const char *text) |
Protected Attributes | |
CharBuffer * | buf |
Base class for all numeral systems.
More info on numeral systems is available at Wikipedia: https://wikipedia.org/wiki/Numeral_system
NumeralSystem::NumeralSystem | ( | ) |
Definition at line 33 of file ntext.cpp.
References buf, CharBuffer::CharBuffer(), and CharBuffer::Empty().
|
pure virtual |
Implemented in PositionalNumeralSystem.
Referenced by DigitsStatement::Execute(), OutputStatement::Execute(), and InputStatement::Execute().
|
pure virtual |
Implemented in PositionalNumeralSystem.
|
pure virtual |
Implemented in PositionalNumeralSystem.
Referenced by InputStatement::Execute(), and OutputStatement::Execute().
|
pure virtual |
Implemented in PositionalNumeralSystem.
|
pure virtual |
Implemented in PositionalNumeralSystem, and DecimalSystem.
Referenced by PlotStatement::Execute(), MemoryStatement::Execute(), DigitsStatement::Execute(), EvalStatement::Execute(), PreferencesBase::GetDescription(), PositionalNumeralSystem::GetName(), NumericValueNode::GetNodeText(), and VariableList::ListContent().
|
pure virtual |
Implemented in PositionalNumeralSystem.
Referenced by Lexer::GetDigitValue(), and Parse().
|
virtual |
Definition at line 44 of file ntext.cpp.
References Parse().
Referenced by Parser::ParseDigistStatement(), Parser::ParseNumber(), and Parser::ParseNumeralStatement().
|
pure virtual |
Implemented in PositionalNumeralSystem.
Referenced by DigitsStatement::Execute(), and PrefsStatement::Execute().
|
pure virtual |
Implemented in PositionalNumeralSystem.
|
protected |
Definition at line 65 of file ntext.h.
Referenced by PositionalNumeralSystem::GetName(), PositionalNumeralSystem::GetSpecialCase(), DecimalSystem::GetText(), PositionalNumeralSystem::GetText(), PositionalNumeralSystem::IntegerToBuffer(), NumeralSystem(), and ~NumeralSystem().