asdm::Complex Class Reference

#include <Complex.h>

List of all members.


Detailed Description

The Complex class extends the Complex class in the C++ standard library.

Version:
1.00 Jan. 7, 2005
Author:
Allen Farris
Version:
1.1 Aug 8, 2006
Author:
Michel Caillat added toBin/fromBin methods.


Public Member Functions

 Complex (const Complex &)
 Complex (const string &s)
 Complex (const 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
string toString () const
IDLComplex toIDLComplex () const
void toBin (EndianOSStream &eoss)

Static Public Member Functions

Complex fromString (const string &) throw (NumberFormatException)
string toString (const Complex &)
Complex getComplex (StringTokenizer &t) throw (NumberFormatException)
void toBin (const vector< Complex > &cmplx, EndianOSStream &eoss)
void toBin (const vector< vector< Complex > > &cmplx, EndianOSStream &eoss)
void toBin (const vector< vector< vector< Complex > > > &cmplx, EndianOSStream &eoss)
Complex fromBin (EndianISStream &eiss)
vector< Complexfrom1DBin (EndianISStream &eiss)
vector< vector< Complex > > from2DBin (EndianISStream &eiss)
vector< vector< vector< Complex > > > from3DBin (EndianISStream &eiss)


Member Function Documentation

vector<Complex> asdm::Complex::from1DBin EndianISStream &  eiss  )  [static]
 

Read the binary representation of a vector of Complex from an EndianISStream and use the read value to set a vector of Complex.

Parameters:
dis the EndianISStream to be read
Returns:
a vector of Complex

vector<vector<Complex> > asdm::Complex::from2DBin EndianISStream &  eiss  )  [static]
 

Read the binary representation of a vector of vector of Complex from an EndianISStream and use the read value to set a vector of vector of Complex.

Parameters:
eiis the EndianISStream to be read
Returns:
a vector of vector of Complex

vector<vector<vector<Complex> > > asdm::Complex::from3DBin EndianISStream &  eiss  )  [static]
 

Read the binary representation of a vector of vector of vector of Complex from an EndianISStream and use the read value to set a vector of vector of vector of Complex.

Parameters:
eiss the EndianISStream to be read
Returns:
a vector of vector of vector of Complex

Complex asdm::Complex::fromBin EndianISStream &  eiss  )  [static]
 

Read the binary representation of an Complex from a EndianISStream and use the read value to set an Complex.

Parameters:
eiss the EndianStream to be read
Returns:
an Complex

void asdm::Complex::toBin const vector< vector< vector< Complex > > > &  cmplx,
EndianOSStream &  eoss
[static]
 

Write the binary representation of a vector of vector of vector of Complex to a EndianOSStream.

Parameters:
cmplx the vector of vector of vector of Complex to be written
eoss the EndianOSStream to be written to

void asdm::Complex::toBin const vector< vector< Complex > > &  cmplx,
EndianOSStream &  eoss
[static]
 

Write the binary representation of a vector of vector of Complex to a EndianOSStream.

Parameters:
cmplx the vector of vector of Complex to be written
eoss the EndianOSStream to be written to

void asdm::Complex::toBin const vector< Complex > &  cmplx,
EndianOSStream &  eoss
[static]
 

Write the binary representation of a vector of Complex to a EndianOSStream.

Parameters:
cmplx the vector of Complex to be written
eoss the EndianOSStream to be written to

void asdm::Complex::toBin EndianOSStream &  eoss  ) 
 

Write the binary representation of this to a EndianOSStream.


The documentation for this class was generated from the following file:
Generated on Tue Nov 18 17:43:44 2008 for ASDM C++ Implementation by doxygen 1.3.8