Dokit
Internal development documentation
|
Public Member Functions | |
bool | isValid () const |
Returns true if both num and den are non-zero. | |
Public Attributes | |
std::intmax_t | num { 0 } |
Numerator. | |
std::intmax_t | den { 0 } |
A (run-time) class approximately equivalent to the compile-time std::ratio template.
Definition at line 120 of file abstractcommand.cpp.
|
inline |
Returns true if both num and den are non-zero.
Definition at line 124 of file abstractcommand.cpp.
Referenced by AbstractCommand::parseNumber().
std::intmax_t Ratio::den { 0 } |
Denominator.
Definition at line 122 of file abstractcommand.cpp.
Referenced by isValid().
std::intmax_t Ratio::num { 0 } |
Numerator.
Definition at line 121 of file abstractcommand.cpp.
Referenced by isValid(), and AbstractCommand::parseNumber().