![]() |
Diana Software
|
Public Member Functions | |
| QComplex () | |
| default constructor More... | |
| QComplex (const double Re, const double Im=0) | |
| QComplex (const QComplex &orig) | |
| copy constructor More... | |
| ~QComplex () | |
| void | Clear () |
| clear More... | |
| double | Re () const |
| double | Im () const |
| void | SetRe (const double Re) |
| void | SetIm (const double Im) |
| void | Set (const double Re, const double Im) |
| void | SetPolar (const double mag, const double phase) |
| double | GetModulusSquare () const |
| double | GetMagnitude () const |
| double | GetPhase () const |
| QComplex | Conj () const |
| QComplex | operator+ (const QComplex &other) const |
| QComplex | operator- (const QComplex &other) const |
| QComplex | operator* (const QComplex &other) const |
| QComplex | operator/ (const QComplex &other) const |
| QComplex & | operator+= (const QComplex &other) |
| QComplex & | operator-= (const QComplex &other) |
| QComplex & | operator*= (const QComplex &other) |
| QComplex & | operator/= (const QComplex &other) |
| QComplex | operator+ (const double other) const |
| QComplex | operator- (const double other) const |
| QComplex | operator* (const double other) const |
| QComplex | operator/ (const double other) const |
| QComplex & | operator+= (const double other) |
| QComplex & | operator-= (const double other) |
| QComplex & | operator*= (const double other) |
| QComplex & | operator/= (const double other) |
| QVectorC | operator* (const QVectorC &vec) const |
| const QComplex & | operator= (const QComplex &other) |
Public Member Functions inherited from QObject | |
| QObject () | |
| default constructor More... | |
| virtual | ~QObject () |
| destructor More... | |
| QObject & | operator= (const QObject &rhs) |
| operator= More... | |
| void | Validate () |
| make object valid More... | |
| void | InValidate () |
| make object non valid More... | |
| bool | IsValid () const |
| check wheter object is valid More... | |
| void | SetWrite (bool write=true) |
| write or not this object More... | |
| bool | GetWrite () const |
| check wheter write or not this object More... | |
| bool | IsRequired () const |
| check wheter this object is required by some module More... | |
| void | SetIsRequired (bool required=true) |
| set that this object is required More... | |
| bool | IsJustAdded () const |
| check wheter this object has been just added by some module More... | |
| void | SetIsJustAdded (bool added=true) |
| set that this object has been just added More... | |
| void | Reset () |
| set object to non valid and calls Clear() More... | |
| virtual bool | Fill (QObject *evData) const =0 |
| calls operator= of inheriting classes. Validity flag and bits are not copied. This function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp. If evData type mismatches returns false, true otherwise. More... | |
| void | FullyFill (QObject *evData) const |
| calls Fill(QObject*) if this QObject IsValid(). Copies Validity flag and bits More... | |
| virtual QObject * | Duplicate () const =0 |
| create object of same type, this function is automatically declared/implemented in derived classes by QObjectDef/QObjectImp More... | |
| virtual void | Dump (std::ostream &o) const |
| print content to stream (intended for screen print or log files) More... | |
| virtual void | Print () const |
| print content on screen More... | |
| virtual QError | WriteOnStream (std::ostream &o) const |
| print content to stream (intended for storage in text files) More... | |
| virtual QError | ReadFromStream (std::istream &o) |
| fill content from stream (intended for storage in text files) More... | |
| void | CopyBits (QObject *obj) const |
| copy validity and temporary bits to another QObject More... | |
| virtual void | Draw (Option_t *option="") |
Private Member Functions | |
| QComplex (double *other) | |
| QComplex (gsl_complex *other) | |
| QComplex (gsl_complex other) | |
| gsl_complex | Get_gsl_complex () const |
| QObjectDef (QComplex, 2) | |
Private Attributes | |
| bool | fOwner |
| int | fSize |
| double * | fData |
Friends | |
| class | QVectorC |
| class | QMatrixC |
Additional Inherited Members | |
Public Types inherited from QObject | |
| enum | { kIsValid = BIT(15) , kWrite = BIT(0) , kIsRequired = BIT(1) , kIsJustAdded = BIT(2) } |
| TObject bits. More... | |
Static Public Member Functions inherited from QObject | |
| static QObject * | New (const char *object) |
Definition at line 19 of file QComplex.hh.
| Q_BEGIN_NAMESPACE QComplex::QComplex | ( | ) |
default constructor
Definition at line 18 of file QComplex.cc.
References fData.
Referenced by Conj(), operator*(), operator+(), operator-(), and operator/().
| QComplex::QComplex | ( | const double | Re, |
| const double | Im = 0 |
||
| ) |
@constructed from two double
| re | real part |
| im | imaginary part |
Definition at line 25 of file QComplex.cc.
| QComplex::QComplex | ( | const QComplex & | orig | ) |
copy constructor
| orig | original QVectorC |
Definition at line 58 of file QComplex.cc.
References fData.
| QComplex::~QComplex | ( | ) |
Definition at line 67 of file QComplex.cc.
|
private |
Definition at line 34 of file QComplex.cc.
References fData.
|
private |
Definition at line 51 of file QComplex.cc.
References fData.
|
private |
Definition at line 41 of file QComplex.cc.
References fData.
|
inlinevirtual |
clear
Implements QObject.
Definition at line 42 of file QComplex.hh.
References fData, and Q_DOUBLE_DEFAULT.
| QComplex QComplex::Conj | ( | ) | const |
Definition at line 101 of file QComplex.cc.
References fData, and QComplex().
|
private |
Definition at line 223 of file QComplex.cc.
References fData.
Referenced by QMatrixC::operator*=(), QVectorC::operator*=(), QVectorC::operator-=(), and QVectorC::operator/=().
| double QComplex::GetMagnitude | ( | ) | const |
Definition at line 91 of file QComplex.cc.
References GetModulusSquare().
Referenced by QMatrixC::Magnitude().
| double QComplex::GetModulusSquare | ( | ) | const |
Definition at line 86 of file QComplex.cc.
References fData.
Referenced by GetMagnitude(), and operator/().
| double QComplex::GetPhase | ( | ) | const |
| double QComplex::Im | ( | ) | const |
Definition at line 73 of file QComplex.cc.
References fData.
Referenced by QVectorC::Append(), QMatrixCArray::Initialize(), QVectorC::Initialize(), QComplex(), Set(), and SetIm().
| QComplex QComplex::operator* | ( | const double | other | ) | const |
Definition at line 166 of file QComplex.cc.
References fData, and QComplex().
Definition at line 116 of file QComplex.cc.
References fData, and QComplex().
Definition at line 209 of file QComplex.cc.
References vec.
| QComplex & QComplex::operator*= | ( | const double | other | ) |
Definition at line 187 of file QComplex.cc.
References fData.
Definition at line 144 of file QComplex.cc.
| QComplex QComplex::operator+ | ( | const double | other | ) | const |
Definition at line 156 of file QComplex.cc.
References fData, and QComplex().
Definition at line 106 of file QComplex.cc.
References fData, and QComplex().
| QComplex & QComplex::operator+= | ( | const double | other | ) |
Definition at line 175 of file QComplex.cc.
References fData.
Definition at line 130 of file QComplex.cc.
References fData.
| QComplex QComplex::operator- | ( | const double | other | ) | const |
Definition at line 161 of file QComplex.cc.
References fData, and QComplex().
Definition at line 111 of file QComplex.cc.
References fData, and QComplex().
| QComplex & QComplex::operator-= | ( | const double | other | ) |
Definition at line 181 of file QComplex.cc.
References fData.
Definition at line 137 of file QComplex.cc.
References fData.
| QComplex QComplex::operator/ | ( | const double | other | ) | const |
Definition at line 171 of file QComplex.cc.
References fData, and QComplex().
Definition at line 123 of file QComplex.cc.
References fData, GetModulusSquare(), and QComplex().
| QComplex & QComplex::operator/= | ( | const double | other | ) |
Definition at line 194 of file QComplex.cc.
References fData.
Definition at line 150 of file QComplex.cc.
Definition at line 201 of file QComplex.cc.
References fData.
|
private |
| double QComplex::Re | ( | ) | const |
Definition at line 72 of file QComplex.cc.
References fData.
Referenced by QVectorC::Append(), QMatrixCArray::Initialize(), QVectorC::Initialize(), QComplex(), Set(), and SetRe().
| void QComplex::Set | ( | const double | Re, |
| const double | Im | ||
| ) |
Definition at line 79 of file QComplex.cc.
| void QComplex::SetIm | ( | const double | Im | ) |
Definition at line 76 of file QComplex.cc.
Referenced by QMatrixC::QMatrixC().
| void QComplex::SetPolar | ( | const double | mag, |
| const double | phase | ||
| ) |
Definition at line 82 of file QComplex.cc.
| void QComplex::SetRe | ( | const double | Re | ) |
Definition at line 75 of file QComplex.cc.
Referenced by QMatrixC::QMatrixC().
|
friend |
Definition at line 87 of file QComplex.hh.
|
friend |
Definition at line 86 of file QComplex.hh.
|
private |
Definition at line 84 of file QComplex.hh.
Referenced by Clear(), Conj(), Get_gsl_complex(), GetModulusSquare(), GetPhase(), Im(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator=(), QComplex(), Re(), Set(), SetIm(), SetPolar(), SetRe(), and ~QComplex().
|
private |
Definition at line 82 of file QComplex.hh.
Referenced by ~QComplex().
|
private |
Definition at line 83 of file QComplex.hh.