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

Static Public Member Functions

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


Member Function Documentation

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

Write the binary representation of this to a EndianOSStream.

static 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

static 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

static 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

static 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

static 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

static 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

static 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


The documentation for this class was generated from the following file:
Generated on Thu Nov 29 16:46:49 2007 for ASDM C++ Implementation by  doxygen 1.5.1