SH::ShHalf Struct Reference

List of all members.

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
ShHalfoperator= (double value)
 Arithmetic operators.
ShHalfoperator= (const ShHalf &other)
ShHalfoperator+= (double value)
ShHalfoperator+= (const ShHalf &other)
ShHalfoperator-= (double value)
ShHalfoperator-= (const ShHalf &other)
ShHalfoperator *= (double value)
ShHalfoperator *= (const ShHalf &other)
ShHalfoperator/= (double value)
ShHalfoperator/= (const ShHalf &other)
ShHalf operator- () const
 Negation.
ShHalfoperator%= (double value)
 Float modulus - result is always positive.
ShHalfoperator%= (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).

Detailed Description

Definition at line 28 of file ShHalf.hpp.


The documentation for this struct was generated from the following files:
Generated on Thu Feb 16 14:56:01 2006 for Sh by  doxygen 1.4.6