Numworks Epsilon
1.4.1
Graphing Calculator Operating System
|
#include <integer.h>
Public Types | |
typedef uint16_t | half_native_uint_t |
typedef int32_t | native_int_t |
typedef int64_t | double_native_int_t |
typedef uint32_t | native_uint_t |
typedef uint64_t | double_native_uint_t |
Public Member Functions | |
Integer (native_int_t i=0) | |
Integer (double_native_int_t i) | |
Integer (const char *digits, bool negative=false) | |
~Integer () | |
Integer (Integer &&other) | |
Integer & | operator= (Integer &&other) |
Integer (const Integer &other) | |
Integer & | operator= (const Integer &other) |
bool | isNegative () const |
void | setNegative (bool negative) |
int | extractedInt () const |
bool | isEqualTo (const Integer &other) const |
bool | isLowerThan (const Integer &other) const |
int | writeTextInBuffer (char *buffer, int bufferSize) const |
ExpressionLayout * | createLayout () const |
template<typename T > | |
T | approximate () const |
bool | isOne () const |
bool | isTwo () const |
bool | isTen () const |
bool | isMinusOne () const |
bool | isZero () const |
Static Public Member Functions | |
static Integer | exponent (int fractionalPartLength, const char *exponent, int exponentLength, bool exponentNegative) |
static Integer | numerator (const char *integralPart, int integralPartLength, const char *fractionalPart, int fractionalPartLength, bool negative, Integer *exponent) |
static Integer | denominator (Integer *exponent) |
static int | NaturalOrder (const Integer &i, const Integer &j) |
static Integer | Addition (const Integer &i, const Integer &j) |
static Integer | Subtraction (const Integer &i, const Integer &j) |
static Integer | Multiplication (const Integer &i, const Integer &j) |
static Integer | Factorial (const Integer &i) |
static IntegerDivision | Division (const Integer &numerator, const Integer &denominator) |
static Integer | Power (const Integer &i, const Integer &j) |
Static Public Attributes | |
static constexpr int | k_maxExtractableInteger = 0x7FFFFFFF |
|
inline |
Poincare::Integer::Integer | ( | double_native_int_t | i | ) |
Definition at line 41 of file integer.cpp.
Definition at line 59 of file integer.cpp.
Poincare::Integer::~Integer | ( | ) |
Definition at line 129 of file integer.cpp.
Poincare::Integer::Integer | ( | Integer && | other | ) |
Definition at line 133 of file integer.cpp.
Poincare::Integer::Integer | ( | const Integer & | other | ) |
Definition at line 149 of file integer.cpp.
Definition at line 232 of file integer.cpp.
template double Poincare::Integer::approximate< double > | ( | ) | const |
Definition at line 479 of file integer.cpp.
ExpressionLayout * Poincare::Integer::createLayout | ( | ) | const |
Definition at line 590 of file integer.cpp.
Definition at line 117 of file integer.cpp.
|
static |
Definition at line 281 of file integer.cpp.
|
static |
Definition at line 86 of file integer.cpp.
Definition at line 271 of file integer.cpp.
Definition at line 222 of file integer.cpp.
Definition at line 226 of file integer.cpp.
Definition at line 240 of file integer.cpp.
Definition at line 212 of file integer.cpp.
|
static |
Definition at line 100 of file integer.cpp.
Definition at line 164 of file integer.cpp.
Definition at line 184 of file integer.cpp.
Definition at line 313 of file integer.cpp.
void Poincare::Integer::setNegative | ( | bool | negative | ) |
Definition at line 203 of file integer.cpp.
Definition at line 236 of file integer.cpp.
int Poincare::Integer::writeTextInBuffer | ( | char * | buffer, |
int | bufferSize | ||
) | const |
Definition at line 545 of file integer.cpp.
|
static |
native_uint_t Poincare::Integer::m_digit |
const native_uint_t* Poincare::Integer::m_digits |