#include <Float.hpp>
Public Methods | |
| Float () | |
| Float (float v) | |
| Float (float v, enum MathState s) | |
| Float (const char *s) | |
| Float (const Float &F) | |
| virtual | ~Float () |
| operator Float () const | |
| Float | operator~ () |
Friends | |
| ostream & | operator<< (ostream &os, Float &F) |
| Float | operator<< (const Float &l, const Float &r) |
| Float | operator>> (const Float &l, const Float &r) |
| Float | operator| (const Float &l, const Float &r) |
| Float | operator & (const Float &l, const Float &r) |
| Float | operator^ (const Float &l, const Float &r) |
|
|
Definition at line 13 of file Float.hpp. Referenced by operator &(), operator<<(), operator>>(), operator^(), operator|(), and operator~().
00013 : value(0), status( Valid ) {
00014 verify();
00015 }
|
|
|
Definition at line 17 of file Float.hpp. 00017 : value(v), status( Valid ) {
00018 verify();
00019 }
|
|
||||||||||||
|
|
|
|
|
|
|
Definition at line 34 of file Float.hpp. 00035 : value( F.value ), status( F.status ) { }
|
|
|
Definition at line 37 of file Float.hpp. 00037 { }
|
|
|
Definition at line 55 of file Float.hpp. 00055 {
00056 return (Float)value;
00057 }
|
|
|
Definition at line 65 of file Float.hpp. 00065 {
00066 return Float( ~value );
00067 }
|
|
||||||||||||
|
Definition at line 112 of file Float.hpp. 00112 {
00113 return Float(l.value&r.value);
00114 }
|
|
||||||||||||
|
Definition at line 100 of file Float.hpp. 00100 {
00101 return Float(l.value<<r.value);
00102 }
|
|
||||||||||||
|
Definition at line 39 of file Float.hpp. 00039 {
00040 unsigned int state = (unsigned int)(F.status);
00041 if ( state < 3 ) {
00042 return os << F.value;
00043 } else if ( state < J2K_MAX_MathState ) {
00044 return os << MathStateTxt[ state ];
00045 }
00046
00047 // Something weird occured, if this get executed !
00048 abort();
00049 return os << "";
00050
00051 }
|
|
||||||||||||
|
Definition at line 104 of file Float.hpp. 00104 {
00105 return Float(l.value>>r.value);
00106 }
|
|
||||||||||||
|
Definition at line 116 of file Float.hpp. 00116 {
00117 return Float(l.value^r.value);
00118 }
|
|
||||||||||||
|
Definition at line 108 of file Float.hpp. 00108 {
00109 return Float(l.value|r.value);
00110 }
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001