Public Types | |
| typedef unsigned short | T |
Public Member Functions | |
| ShHalf () | |
| Constructs an half with undefined value. | |
| ShHalf (double value) | |
| Constructs an half. | |
| operator double () const | |
| ShHalf & | operator= (double value) |
| Arithmetic operators. | |
| ShHalf & | operator= (const ShHalf &other) |
| ShHalf & | operator+= (double value) |
| ShHalf & | operator+= (const ShHalf &other) |
| ShHalf & | operator-= (double value) |
| ShHalf & | operator-= (const ShHalf &other) |
| ShHalf & | operator *= (double value) |
| ShHalf & | operator *= (const ShHalf &other) |
| ShHalf & | operator/= (double value) |
| ShHalf & | operator/= (const ShHalf &other) |
| ShHalf | operator- () const |
| Negation. | |
| ShHalf & | operator%= (double value) |
| Float modulus - result is always positive. | |
| ShHalf & | operator%= (const ShHalf &other) |
Public Attributes | |
| T | m_val |
Static Public Attributes | |
| static const int | S |
| static const int | E |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const ShHalf &value) |
| Output operator. | |
| std::istream & | operator>> (std::istream &out, ShHalf &value) |
| Input operator (format matches output). | |
Definition at line 28 of file ShHalf.hpp.
1.4.6