CPP02 1.0
|
#include <Fixed.hpp>
公開メンバ関数 | |
Fixed () | |
Default constructor. | |
Fixed (const Fixed &other) | |
Copy constructor. | |
Fixed & | operator= (const Fixed &other) |
Copy assignment operator. | |
~Fixed () | |
Destructor. | |
int | getRawBits (void) const |
Gets the raw value of the fixed-point number. | |
void | setRawBits (int const raw) |
Sets the raw value of the fixed-point number. | |
Fixed () | |
Fixed (const int raw) | |
Constructor taking an integer. | |
Fixed (const float raw) | |
Constructor taking a float. | |
Fixed (const Fixed &other) | |
Fixed & | operator= (const Fixed &other) |
Copy assignment operator. | |
~Fixed () | |
int | getRawBits (void) const |
void | setRawBits (int const raw) |
float | toFloat (void) const |
Converts the fixed-point value to a floating-point value. | |
int | toInt (void) const |
Converts the fixed-point value to an integer value (truncates the fractional part). | |
Fixed () | |
Fixed (const int raw) | |
Fixed (const float raw) | |
Fixed (const Fixed &other) | |
Fixed & | operator= (const Fixed &other) |
~Fixed () | |
int | getRawBits (void) const |
void | setRawBits (int const raw) |
float | toFloat (void) const |
int | toInt (void) const |
bool | operator> (const Fixed &other) const |
Overloads the greater-than operator. | |
bool | operator< (const Fixed &other) const |
Overloads the less-than operator. | |
bool | operator>= (const Fixed &other) const |
Overloads the greater-than-or-equal-to operator. | |
bool | operator<= (const Fixed &other) const |
Overloads the less-than-or-equal-to operator. | |
bool | operator== (const Fixed &other) const |
Overloads the equality operator. | |
bool | operator!= (const Fixed &other) const |
Overloads the inequality operator. | |
Fixed | operator+ (const Fixed &other) const |
Overloads the addition operator. | |
Fixed | operator- (const Fixed &other) const |
Overloads the subtraction operator. | |
Fixed | operator* (const Fixed &other) const |
Overloads the multiplication operator. | |
Fixed | operator/ (const Fixed &other) const |
Overloads the division operator. | |
Fixed & | operator++ () |
Overloads the pre-increment operator. | |
Fixed | operator++ (int) |
Overloads the post-increment operator. | |
Fixed & | operator-- () |
Overloads the pre-decrement operator. | |
Fixed | operator-- (int) |
Overloads the post-decrement operator. | |
Fixed () | |
Fixed (const int raw) | |
Fixed (const float raw) | |
Fixed (const Fixed &other) | |
Fixed & | operator= (const Fixed &other) |
~Fixed () | |
int | getRawBits (void) const |
void | setRawBits (int const raw) |
float | toFloat (void) const |
int | toInt (void) const |
bool | operator> (const Fixed &other) const |
bool | operator< (const Fixed &other) const |
bool | operator>= (const Fixed &other) const |
bool | operator<= (const Fixed &other) const |
bool | operator== (const Fixed &other) const |
bool | operator!= (const Fixed &other) const |
Fixed | operator+ (const Fixed &other) const |
Fixed | operator- (const Fixed &other) const |
Fixed | operator* (const Fixed &other) const |
Fixed | operator/ (const Fixed &other) const |
Fixed & | operator++ () |
Fixed | operator++ (int) |
Fixed & | operator-- () |
Fixed | operator-- (int) |
静的公開メンバ関数 | |
static Fixed & | min (Fixed &a, Fixed &b) |
Static member function to find the minimum of two Fixed objects (non-const). | |
static const Fixed & | min (const Fixed &a, const Fixed &b) |
Static member function to find the minimum of two constant Fixed objects. | |
static Fixed & | max (Fixed &a, Fixed &b) |
Static member function to find the maximum of two Fixed objects (non-const). | |
static const Fixed & | max (const Fixed &a, const Fixed &b) |
Static member function to find the maximum of two constant Fixed objects. | |
static Fixed & | min (Fixed &a, Fixed &b) |
static const Fixed & | min (const Fixed &a, const Fixed &b) |
static Fixed & | max (Fixed &a, Fixed &b) |
static const Fixed & | max (const Fixed &a, const Fixed &b) |
Fixed::Fixed | ( | ) |
Fixed::Fixed | ( | const Fixed & | other | ) |
Fixed::~Fixed | ( | ) |
Fixed::Fixed | ( | ) |
Fixed::Fixed | ( | const int | raw | ) |
Fixed::Fixed | ( | const float | raw | ) |
Fixed::Fixed | ( | const Fixed & | other | ) |
Fixed::~Fixed | ( | ) |
Fixed::Fixed | ( | ) |
Fixed::Fixed | ( | const int | raw | ) |
Fixed::Fixed | ( | const float | raw | ) |
Fixed::Fixed | ( | const Fixed & | other | ) |
Fixed::~Fixed | ( | ) |
Fixed::Fixed | ( | ) |
Fixed::Fixed | ( | const int | raw | ) |
Fixed::Fixed | ( | const float | raw | ) |
Fixed::Fixed | ( | const Fixed & | other | ) |
Fixed::~Fixed | ( | ) |
int Fixed::getRawBits | ( | void | ) | const |
int Fixed::getRawBits | ( | void | ) | const |
int Fixed::getRawBits | ( | void | ) | const |
int Fixed::getRawBits | ( | void | ) | const |
bool Fixed::operator!= | ( | const Fixed & | other | ) | const |
bool Fixed::operator!= | ( | const Fixed & | other | ) | const |
Fixed & Fixed::operator++ | ( | ) |
Fixed & Fixed::operator++ | ( | ) |
Fixed Fixed::operator++ | ( | int | ) |
Fixed Fixed::operator++ | ( | int | ) |
Fixed & Fixed::operator-- | ( | ) |
Fixed & Fixed::operator-- | ( | ) |
Fixed Fixed::operator-- | ( | int | ) |
Fixed Fixed::operator-- | ( | int | ) |
bool Fixed::operator< | ( | const Fixed & | other | ) | const |
bool Fixed::operator< | ( | const Fixed & | other | ) | const |
bool Fixed::operator<= | ( | const Fixed & | other | ) | const |
bool Fixed::operator<= | ( | const Fixed & | other | ) | const |
Copy assignment operator.
Assigns the value of another Fixed object to the current object and prints a message.
other | The Fixed object to assign from. |
Assigns the value of another Fixed object to the current object and prints a message.
other | The Fixed object to assign from. |
< [copyAssignmentOperator] [copyAssignmentOperator]
bool Fixed::operator== | ( | const Fixed & | other | ) | const |
bool Fixed::operator== | ( | const Fixed & | other | ) | const |
bool Fixed::operator> | ( | const Fixed & | other | ) | const |
bool Fixed::operator> | ( | const Fixed & | other | ) | const |
bool Fixed::operator>= | ( | const Fixed & | other | ) | const |
bool Fixed::operator>= | ( | const Fixed & | other | ) | const |
void Fixed::setRawBits | ( | int const | raw | ) |
void Fixed::setRawBits | ( | int const | raw | ) |
void Fixed::setRawBits | ( | int const | raw | ) |
void Fixed::setRawBits | ( | int const | raw | ) |
float Fixed::toFloat | ( | void | ) | const |
float Fixed::toFloat | ( | void | ) | const |
float Fixed::toFloat | ( | void | ) | const |
int Fixed::toInt | ( | void | ) | const |
int Fixed::toInt | ( | void | ) | const |
int Fixed::toInt | ( | void | ) | const |