36 #include <asdmIDLTypesC.h>
56 class Complex :
public std::complex<double> {
67 Complex(
const asdmIDLTypes::IDLComplex &);
108 static void toBin(
const std::vector<std::vector<std::vector<Complex> > >& cmplx,
EndianOSStream& eoss);
155 inline Complex::Complex(
const asdmIDLTypes::IDLComplex &l) : std::complex<double>(l.re,l.im) {
179 return real() == 0.0 &&
imag() == 0.0;
183 return real() == x.real() &&
imag() == x.imag();
188 asdmIDLTypes::IDLComplex x;
LatticeExprNode imag(const LatticeExprNode &expr)
static Complex fromString(const std::string &)
The StringTokenizer class is a translation into C++ of the Java class of the same name in Java's util...
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 rea...
asdmIDLTypes::IDLComplex toIDLComplex() const
The Complex class extends the Complex class in the C++ standard library.
void toBin(EndianOSStream &eoss)
Write the binary representation of this to a EndianOSStream.
static std::string toString(double d)
Encode a double value into its string representation.
static Complex getComplex(StringTokenizer &t)
Complex()
Complex constructors.
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...
bool equals(const Complex &) const
std::string toString() const
static Complex fromBin(EndianIStream &eis)
Read the binary representation of an Complex from a EndianIStream and use the read value to set an Co...
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 u...
LatticeExprNode real(const LatticeExprNode &expr)