Digit - Richard-Degenne/MathParser GitHub Wiki
Class overview
A digit is the primary component for every numeric object.
Summary
Constants
digit
Enumerated type ERROR
-1ZERO
0ONE
1TWO
2THREE
3FOUR
4FIVE
5SIX
6SEVEN
7EIGHT
8NINE
9
Attributes
digit value
bool overflow
Private methods
void setOverflow()
void incrementValue()
void decrementValue()
Public methods
Constructors
Digit()
Digit(digit)
Digit(Digit const&)
Digit(int const)
Getters
digit getValue() const
bool getOverflow() const
Setters
void setValue(digit)
void resetOverflow()
Other methods
void printTo(std::ostream&) const
bool isEqualTo(Digit const&) const
bool isGreaterThan(Digit const&) const
Short operators overload
Digit operator= (Digit const&)
Digit operator+=(Digit const&)
Digit operator-=(Digit const&)
Digit operator*=(Digit const&)
Digit operator/=(Digit const&)
Digit operator%=(Digit const&)
Related non-member functions
Long operators overload
Digit operator+(Digit const&, Digit const&)
Digit operator-(Digit const&, Digit const&)
Digit operator*(Digit const&, Digit const&)
Digit operator/(Digit const&, Digit const&)
Digit operator%(Digit const&, Digit const&)
Relational operators overload
bool operator==(Digit const&, Digit const&)
bool operator!=(Digit const&, Digit const&)
bool operator> (Digit const&, Digit const&)
bool operator>=(Digit const&, Digit const&)
bool operator< (Digit const&, Digit const&)
bool operator<=(Digit const&, Digit const&)
Stream operators overload
std::ostream& operator<<(std::ostream&, Digit)