#include <GteBSNumber.h>
Public Member Functions | |
BSNumber () | |
BSNumber (BSNumber const &number) | |
BSNumber (float number) | |
BSNumber (double number) | |
BSNumber (int32_t number) | |
BSNumber (uint32_t number) | |
BSNumber (int64_t number) | |
BSNumber (uint64_t number) | |
BSNumber (BSNumber &&number) | |
int32_t | GetBiasedExponent () const |
int32_t | GetExponent () const |
int32_t | GetSign () const |
UIntegerType const & | GetUInteger () const |
operator double () const | |
operator float () const | |
bool | operator!= (BSNumber const &number) const |
BSNumber | operator* (BSNumber const &number) const |
BSNumber & | operator*= (BSNumber const &number) |
BSNumber | operator+ () const |
BSNumber | operator+ (BSNumber const &number) const |
BSNumber & | operator+= (BSNumber const &number) |
BSNumber | operator- () const |
BSNumber | operator- (BSNumber const &number) const |
BSNumber & | operator-= (BSNumber const &number) |
bool | operator< (BSNumber const &number) const |
bool | operator<= (BSNumber const &number) const |
BSNumber & | operator= (BSNumber const &number) |
BSNumber & | operator= (BSNumber &&number) |
bool | operator== (BSNumber const &number) const |
bool | operator> (BSNumber const &number) const |
bool | operator>= (BSNumber const &number) const |
bool | Read (std::ifstream &input) |
bool | Write (std::ofstream &output) const |
Private Member Functions | |
template<typename IEEE > | |
void | ConvertFrom (typename IEEE::FloatType number) |
template<typename IEEE > | |
IEEE::FloatType | ConvertTo () const |
template<typename IEEE > | |
IEEE::UIntType | GetTrailing (int32_t normal, int32_t sigma) const |
Static Private Member Functions | |
static BSNumber | AddIgnoreSign (BSNumber const &n0, BSNumber const &n1, int32_t resultSign) |
static bool | EqualIgnoreSign (BSNumber const &n0, BSNumber const &n1) |
static bool | LessThanIgnoreSign (BSNumber const &n0, BSNumber const &n1) |
static BSNumber | SubIgnoreSign (BSNumber const &n0, BSNumber const &n1, int32_t resultSign) |
Private Attributes | |
int32_t | mBiasedExponent |
int32_t | mSign |
UIntegerType | mUInteger |
Friends | |
class | BSRational< UIntegerType > |
class | UnitTestBSNumber |
Definition at line 71 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | ) |
Definition at line 172 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | BSNumber< UIntegerType > const & | number | ) |
Definition at line 183 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | float | number | ) |
Definition at line 189 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | double | number | ) |
Definition at line 198 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | int32_t | number | ) |
Definition at line 207 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | uint32_t | number | ) |
Definition at line 235 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | int64_t | number | ) |
Definition at line 254 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | uint64_t | number | ) |
Definition at line 282 of file GteBSNumber.h.
gte::BSNumber< UIntegerType >::BSNumber | ( | BSNumber< UIntegerType > && | number | ) |
Definition at line 326 of file GteBSNumber.h.
|
staticprivate |
Definition at line 685 of file GteBSNumber.h.
|
private |
Definition at line 752 of file GteBSNumber.h.
|
private |
Definition at line 827 of file GteBSNumber.h.
|
staticprivate |
Definition at line 661 of file GteBSNumber.h.
|
inline |
Definition at line 352 of file GteBSNumber.h.
|
inline |
Definition at line 358 of file GteBSNumber.h.
|
inline |
Definition at line 346 of file GteBSNumber.h.
|
private |
Definition at line 902 of file GteBSNumber.h.
|
inline |
Definition at line 364 of file GteBSNumber.h.
|
staticprivate |
Definition at line 669 of file GteBSNumber.h.
|
inline |
Definition at line 307 of file GteBSNumber.h.
|
inline |
Definition at line 301 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::operator!= | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 376 of file GteBSNumber.h.
BSNumber< UIntegerType > gte::BSNumber< UIntegerType >::operator* | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 586 of file GteBSNumber.h.
BSNumber< UIntegerType > & gte::BSNumber< UIntegerType >::operator*= | ( | BSNumber< UIntegerType > const & | number | ) |
Definition at line 620 of file GteBSNumber.h.
BSNumber< UIntegerType > gte::BSNumber< UIntegerType >::operator+ | ( | ) | const |
Definition at line 429 of file GteBSNumber.h.
BSNumber< UIntegerType > gte::BSNumber< UIntegerType >::operator+ | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 446 of file GteBSNumber.h.
BSNumber< UIntegerType > & gte::BSNumber< UIntegerType >::operator+= | ( | BSNumber< UIntegerType > const & | number | ) |
Definition at line 604 of file GteBSNumber.h.
BSNumber< UIntegerType > gte::BSNumber< UIntegerType >::operator- | ( | ) | const |
Definition at line 435 of file GteBSNumber.h.
BSNumber< UIntegerType > gte::BSNumber< UIntegerType >::operator- | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 516 of file GteBSNumber.h.
BSNumber< UIntegerType > & gte::BSNumber< UIntegerType >::operator-= | ( | BSNumber< UIntegerType > const & | number | ) |
Definition at line 612 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::operator< | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 382 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::operator<= | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 411 of file GteBSNumber.h.
BSNumber< UIntegerType > & gte::BSNumber< UIntegerType >::operator= | ( | BSNumber< UIntegerType > const & | number | ) |
Definition at line 313 of file GteBSNumber.h.
BSNumber< UIntegerType > & gte::BSNumber< UIntegerType >::operator= | ( | BSNumber< UIntegerType > && | number | ) |
Definition at line 332 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::operator== | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 370 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::operator> | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 417 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::operator>= | ( | BSNumber< UIntegerType > const & | number | ) | const |
Definition at line 423 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::Read | ( | std::ifstream & | input | ) |
Definition at line 645 of file GteBSNumber.h.
|
staticprivate |
Definition at line 718 of file GteBSNumber.h.
bool gte::BSNumber< UIntegerType >::Write | ( | std::ofstream & | output | ) | const |
Definition at line 628 of file GteBSNumber.h.
|
friend |
Definition at line 166 of file GteBSNumber.h.
|
friend |
Definition at line 167 of file GteBSNumber.h.
|
private |
Definition at line 161 of file GteBSNumber.h.
|
private |
Definition at line 160 of file GteBSNumber.h.
|
private |
Definition at line 162 of file GteBSNumber.h.