casa
5.7.0-16
|
The Complex class extends the Complex class in the C++ standard library. More...
#include <ComplexWrapper.h>
Public Member Functions | |
Complex () | |
Complex constructors. More... | |
Complex (const Complex &) | |
Complex (const std::string &s) | |
Complex (const asdmIDLTypes::IDLComplex &) | |
Complex (double re, double im) | |
double | getReal () const |
double | getImg () const |
void | setReal (double re) |
void | setImg (double im) |
bool | isZero () const |
bool | equals (const Complex &) const |
std::string | toString () const |
asdmIDLTypes::IDLComplex | toIDLComplex () const |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to a EndianOSStream. More... | |
Static Public Member Functions | |
static Complex | fromString (const std::string &) throw (NumberFormatException) |
static std::string | toString (const Complex &) |
static Complex | getComplex (StringTokenizer &t) throw (NumberFormatException) |
static void | toBin (const std::vector< Complex > &cmplx, EndianOSStream &eoss) |
Write the binary representation of a vector of Complex to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< Complex > > &cmplx, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Complex to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< std::vector< Complex > > > &cmplx, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Complex to a EndianOSStream. More... | |
static Complex | fromBin (EndianIStream &eis) |
Read the binary representation of an Complex from a EndianIStream and use the read value to set an Complex. More... | |
static std::vector< Complex > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Complex from an EndianIStream and use the read value to set a vector of Complex. More... | |
static std::vector < std::vector< Complex > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Complex from an EndianIStream and use the read value to set a vector of vector of Complex. More... | |
static std::vector < std::vector< std::vector < Complex > > > | from3DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of vector of Complex from an EndianIStream and use the read value to set a vector of vector of vector of Complex. More... | |
The Complex class extends the Complex class in the C++ standard library.
Definition at line 56 of file ComplexWrapper.h.
|
inline |
Complex constructors.
Definition at line 145 of file ComplexWrapper.h.
|
inline |
Definition at line 148 of file ComplexWrapper.h.
|
inline |
Definition at line 151 of file ComplexWrapper.h.
|
inline |
Definition at line 155 of file ComplexWrapper.h.
|
inline |
Definition at line 159 of file ComplexWrapper.h.
|
inline |
Definition at line 182 of file ComplexWrapper.h.
References casacore::imag(), and casacore::real().
|
static |
Read the binary representation of a vector of Complex from an EndianIStream and use the read value to set a vector of Complex.
dis | the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of Complex from an EndianIStream and use the read value to set a vector of vector of Complex.
eiis | the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of vector of Complex from an EndianIStream and use the read value to set a vector of vector of vector of Complex.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of an Complex from a EndianIStream and use the read value to set an Complex.
eis | the EndianStream to be read |
|
static |
|
static |
|
inline |
Definition at line 166 of file ComplexWrapper.h.
References casacore::imag().
Referenced by toIDLComplex(), and toString().
|
inline |
Definition at line 162 of file ComplexWrapper.h.
References casacore::real().
Referenced by toIDLComplex(), and toString().
|
inline |
Definition at line 178 of file ComplexWrapper.h.
References casacore::imag(), and casacore::real().
|
inline |
Definition at line 174 of file ComplexWrapper.h.
References Complex(), and casacore::real().
|
inline |
Definition at line 170 of file ComplexWrapper.h.
References Complex(), and casacore::imag().
void asdm::Complex::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to a EndianOSStream.
|
static |
Write the binary representation of a vector of Complex to a EndianOSStream.
cmplx | the vector of Complex to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of Complex to a EndianOSStream.
cmplx | the vector of vector of Complex to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of vector of Complex to a EndianOSStream.
cmplx | the vector of vector of vector of Complex to be written |
eoss | the EndianOSStream to be written to |
|
inline |
Definition at line 187 of file ComplexWrapper.h.
|
static |
|
inline |
Definition at line 195 of file ComplexWrapper.h.
References getImg(), getReal(), and asdm::Double::toString().