#include <Complex.hpp>
Public Methods | |
| JComplex (const CplxDouble Real) | |
| JComplex (const CplxDouble Real, const CplxDouble Imag) | |
| JComplex (const JComplex &c) | |
| virtual | ~JComplex () |
| BOOL | Compare (const JComplex &c) const |
| BOOL | operator== (const JComplex &c) const |
| BOOL | operator!= (const JComplex &c) const |
| BOOL | Compare (const CplxDouble r) const |
| BOOL | operator== (const CplxDouble r) const |
| BOOL | operator!= (const CplxDouble r) const |
| BOOL | Compare (const JComplex &left, const JComplex &right) |
| JComplex & | operator= (const JComplex &c) |
| JComplex & | operator= (const CplxDouble &x) |
| JComplex | operator+ (const CplxDouble x, const JComplex &right) |
| JComplex | operator- (const CplxDouble x, const JComplex &right) |
| JComplex | operator+ (const JComplex &left, const CplxDouble x) |
| JComplex | operator- (const JComplex &left, const CplxDouble x) |
| JComplex & | operator+= (const JComplex &c) |
| JComplex & | operator-= (const JComplex &c) |
| JComplex & | operator+= (const CplxDouble x) |
| JComplex & | operator-= (const CplxDouble x) |
Friends | |
| BOOL | operator== (const JComplex &left, const JComplex &right) |
| BOOL | operator!= (const JComplex &left, const JComplex &right) |
| BOOL | Compare (const JComplex &l, const CplxDouble x) |
| BOOL | operator== (const JComplex &left, const CplxDouble x) |
| BOOL | operator!= (const JComplex &left, const CplxDouble x) |
| BOOL | operator== (const CplxDouble x, const JComplex &right) |
| BOOL | operator!= (const CplxDouble x, const JComplex &right) |
| JComplex | operator+ (const JComplex &left, const JComplex &right) |
| JComplex | operator- (const JComplex &left, const JComplex &right) |
|
|
Constructors and Destructors ///////////////////////////////////////////////////////////////////////////// Defined in: CpxBuild.cpp /////////////////////////////////////////////////////////////////////////////.
Definition at line 10 of file CpxBuild.cpp. Referenced by CplxNumber(), operator+(), and operator-().
|
|
||||||||||||
|
Constructors and Destructors /////////////////////////////////////////////////////////////////////////////.
Definition at line 7 of file CpxBuild.cpp. |
|
|
Definition at line 13 of file CpxBuild.cpp. |
|
|
Definition at line 16 of file CpxBuild.cpp. Referenced by CplxNumber().
00016 { }
|
|
||||||||||||
|
Compare Left Complex with Right Complex (Friend functions) /////////////////////////////////////////////////////////////////////////////.
Definition at line 38 of file CplxComp.cpp. |
|
|
Compare 'THIS' with a CplxDouble /// True, if Real only and equal /////////////////////////////////////////////////////////////////////////////.
Definition at line 23 of file CplxComp.cpp. 00023 {
00024 return ( (Real == r) && (Imag == 0) );
00025 }
|
|
|
Compare 'THIS' with a Complex ///////////////////////////////////////////////////////////////////////////// Defined in: CplxComp.cpp /////////////////////////////////////////////////////////////////////////////.
Definition at line 7 of file CplxComp.cpp. Referenced by CplxNumber(), operator!=(), and operator==().
|
|
|
Definition at line 31 of file CplxComp.cpp. |
|
|
Definition at line 16 of file CplxComp.cpp. Referenced by CplxNumber().
00016 {
00017 return !Compare( c );
00018 }
|
|
||||||||||||
|
Definition at line 46 of file CplxAdd.cpp. |
|
||||||||||||
|
Definition at line 34 of file CplxAdd.cpp. |
|
|
Definition at line 73 of file CplxAdd.cpp. 00073 {
00074 Real = Real + x;
00075 return (*this);
00076 }
|
|
|
Self-Addition and Self-Substraction operators /////////////////////////////////////////////////////////////////////////////.
Definition at line 61 of file CplxAdd.cpp. Referenced by CplxNumber().
|
|
||||||||||||
|
Definition at line 52 of file CplxAdd.cpp. |
|
||||||||||||
|
Definition at line 40 of file CplxAdd.cpp. |
|
|
Definition at line 78 of file CplxAdd.cpp. 00078 {
00079 Real = Real - x;
00080 return (*this);
00081 }
|
|
|
Definition at line 67 of file CplxAdd.cpp. Referenced by CplxNumber().
|
|
|
Assignment operators /////////////////////////////////////////////////////////////////////////////.
Definition at line 7 of file CplxAdd.cpp. 00007 {
00008 Real = x;
00009 Imag = 0;
00010 return (*this);
00011 }
|
|
|
Assignment operators ///////////////////////////////////////////////////////////////////////////// Defined in: CplxAdd.cpp /////////////////////////////////////////////////////////////////////////////.
Definition at line 13 of file CplxAdd.cpp. Referenced by CplxNumber().
|
|
|
Definition at line 27 of file CplxComp.cpp. |
|
|
Definition at line 12 of file CplxComp.cpp. Referenced by CplxNumber().
00012 {
00013 return Compare( c );
00014 }
|
|
||||||||||||
|
Compare CplxDouble with a Complex (Friend functions) /// True, if Real only and equal /////////////////////////////////////////////////////////////////////////////.
Definition at line 57 of file CplxComp.cpp. |
|
||||||||||||
|
Definition at line 80 of file CplxComp.cpp. 00082 {
00083 return Compare( right, x );
00084 }
|
|
||||||||||||
|
Definition at line 68 of file CplxComp.cpp. 00070 {
00071 return Compare( left, x );
00072 }
|
|
||||||||||||
|
Definition at line 48 of file CplxComp.cpp. 00050 {
00051 return Compare( left, right );
00052 }
|
|
||||||||||||
|
Addition and Substraction operators /////////////////////////////////////////////////////////////////////////////.
Definition at line 141 of file Complex.old. |
|
||||||||||||
|
Definition at line 145 of file Complex.old. |
|
||||||||||||
|
Definition at line 74 of file CplxComp.cpp. 00076 {
00077 return Compare( right, x );
00078 }
|
|
||||||||||||
|
Definition at line 62 of file CplxComp.cpp. 00064 {
00065 return Compare( left, x );
00066 }
|
|
||||||||||||
|
Definition at line 164 of file COMPLEX.CPP. |
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001