The Flux class implements a quantity of flux in janskys. More...
#include <Flux.h>
Public Member Functions | |
Flux () | |
The nullary constructor (default). | |
Flux (const Flux &) | |
The copy constructor. | |
Flux (const string &s) | |
A constructor from a string representation. | |
Flux (const IDLFlux &idlFlux) | |
A constructor from a CORBA/IDL representation. | |
Flux (double value) | |
A constructor from a value in double precision. | |
virtual | ~Flux () |
The destructor. | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . | |
Flux & | operator= (const Flux &x) |
An assignment operator Flux = Flux. | |
Flux & | operator= (const double d) |
An assignment operator Flux = double. | |
Flux & | operator+= (const Flux &x) |
Operator increment and assign. | |
Flux & | operator-= (const Flux &x) |
Operator decrement and assign. | |
Flux & | operator*= (const double x) |
Operator multiply and assign. | |
Flux & | operator/= (const double x) |
Operator divide and assign. | |
Flux | operator+ (const Flux &x) const |
Addition operator. | |
Flux | operator- (const Flux &x) const |
Substraction operator. | |
Flux | operator* (const double x) const |
Multiplication operator. | |
Flux | operator/ (const double x) const |
Division operator. | |
bool | operator< (const Flux &x) const |
Comparison operator. | |
bool | operator> (const Flux &x) const |
Comparison operator. | |
bool | operator<= (const Flux &x) const |
Comparison operator. | |
bool | operator>= (const Flux &x) const |
Comparison operator. | |
bool | operator== (const Flux &x) const |
Comparision operator. | |
bool | equals (const Flux &x) const |
Comparison method. | |
bool | operator!= (const Flux &x) const |
Comparison operator. | |
bool | isZero () const |
Comparison method. | |
Flux | operator- () const |
Unary operator. | |
Flux | operator+ () const |
Unary operator. | |
string | toString () const |
Converts into a string. | |
string | toStringI () const |
Idem toString. | |
operator string () const | |
Conversion operator. | |
double | get () const |
Return the double precision value of the Flux. | |
IDLFlux | toIDLFlux () const |
Return the IDLFlux representation of the Flux. | |
Static Public Member Functions | |
static double | fromString (const string &s) |
A static method equivalent to the constructor from a string. | |
static string | toString (double) |
Conversion into string. | |
static Flux | getFlux (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. | |
static void | toBin (const vector< Flux > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Flux to a EndianOSStream. | |
static void | toBin (const vector< vector< Flux > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Flux to a EndianOSStream. | |
static void | toBin (const vector< vector< vector< Flux > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Flux to a EndianOSStream. | |
static Flux | fromBin (EndianIStream &eis) |
Read the binary representation of an Flux from a EndianIStream and use the read value to set an Flux. | |
static vector< Flux > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Flux from an EndianIStream and use the read value to set a vector of Flux. | |
static vector< vector< Flux > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Flux from an EndianIStream and use the read value to set a vector of vector of Flux. | |
static vector< vector< vector < Flux > > > | from3DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of vector of Flux from an EndianIStream and use the read value to set a vector of vector of vector of Flux. | |
static string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Flux. | |
Private Attributes | |
double | value |
Friends | |
Flux | operator* (double d, const Flux &x) |
Overloading of multiplication operator. | |
ostream & | operator<< (ostream &os, const Flux &x) |
Overloading of << to output the value an Flux on an ostream. | |
istream & | operator>> (istream &is, Flux &x) |
Overloading of >> to read an Flux from an istream. |
The Flux class implements a quantity of flux in janskys.
Definition at line 59 of file Flux.h.
asdm::Flux::Flux | ( | ) | [inline] |
asdm::Flux::Flux | ( | const Flux & | t | ) | [inline] |
asdm::Flux::Flux | ( | const string & | s | ) | [inline] |
asdm::Flux::Flux | ( | const IDLFlux & | idlFlux | ) | [inline] |
asdm::Flux::Flux | ( | double | value | ) | [inline] |
asdm::Flux::~Flux | ( | ) | [inline, virtual] |
bool asdm::Flux::equals | ( | const Flux & | x | ) | const [inline] |
static vector<Flux> asdm::Flux::from1DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of Flux from an EndianIStream and use the read value to set a vector of Flux.
eis | a reference to the EndianIStream to be read |
static vector<vector<Flux> > asdm::Flux::from2DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of vector of Flux from an EndianIStream and use the read value to set a vector of vector of Flux.
eis | the EndianIStream to be read |
static vector<vector<vector<Flux> > > asdm::Flux::from3DBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of a vector of vector of vector of Flux from an EndianIStream and use the read value to set a vector of vector of vector of Flux.
eis | the EndianIStream to be read |
static Flux asdm::Flux::fromBin | ( | EndianIStream & | eis | ) | [static] |
Read the binary representation of an Flux from a EndianIStream and use the read value to set an Flux.
eis | the EndianStream to be read |
static double asdm::Flux::fromString | ( | const string & | s | ) | [static] |
A static method equivalent to the constructor from a string.
s | a string?. |
double asdm::Flux::get | ( | ) | const [inline] |
static Flux asdm::Flux::getFlux | ( | StringTokenizer & | st | ) | throw (NumberFormatException) [static] |
Parse the next (string) token of a StringTokenizer into an angle.
st | a reference to a StringTokenizer. |
bool asdm::Flux::isZero | ( | ) | const |
Comparison method.
Test nullity.
asdm::Flux::operator string | ( | ) | const [inline] |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 418 of file Flux.h.
References toString().
bool asdm::Flux::operator!= | ( | const Flux & | x | ) | const [inline] |
Flux asdm::Flux::operator* | ( | const double | x | ) | const [inline] |
Flux & asdm::Flux::operator*= | ( | const double | x | ) | [inline] |
Flux asdm::Flux::operator+ | ( | ) | const [inline] |
Flux asdm::Flux::operator- | ( | ) | const [inline] |
Flux asdm::Flux::operator/ | ( | const double | x | ) | const [inline] |
Flux & asdm::Flux::operator/= | ( | const double | x | ) | [inline] |
bool asdm::Flux::operator< | ( | const Flux & | x | ) | const [inline] |
bool asdm::Flux::operator<= | ( | const Flux & | x | ) | const [inline] |
Flux & asdm::Flux::operator= | ( | const double | d | ) | [inline] |
bool asdm::Flux::operator== | ( | const Flux & | x | ) | const [inline] |
bool asdm::Flux::operator> | ( | const Flux & | x | ) | const [inline] |
bool asdm::Flux::operator>= | ( | const Flux & | x | ) | const [inline] |
static void asdm::Flux::toBin | ( | const vector< vector< vector< Flux > > > & | angle, | |
EndianOSStream & | eoss | |||
) | [static] |
Write the binary representation of a vector of vector of vector of Flux to a EndianOSStream.
angle | the vector of vector of vector of Flux to be written | |
eoss | the EndianOSStream to be written to |
static void asdm::Flux::toBin | ( | const vector< vector< Flux > > & | angle, | |
EndianOSStream & | eoss | |||
) | [static] |
Write the binary representation of a vector of vector of Flux to a EndianOSStream.
angle | the vector of vector of Flux to be written | |
eoss | the EndianOSStream to be written to |
static void asdm::Flux::toBin | ( | const vector< Flux > & | angle, | |
EndianOSStream & | eoss | |||
) | [static] |
Write the binary representation of a vector of Flux to a EndianOSStream.
angle | the vector of Flux to be written | |
eoss | the EndianOSStream to be written to |
void asdm::Flux::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
IDLFlux asdm::Flux::toIDLFlux | ( | ) | const [inline] |
string asdm::Flux::toString | ( | ) | const [inline] |
Converts into a string.
Definition at line 421 of file Flux.h.
References value.
Referenced by operator string(), and toStringI().
static string asdm::Flux::toString | ( | double | ) | [static] |
Conversion into string.
The resulting string contains the representation of the value of this Flux.
string asdm::Flux::toStringI | ( | ) | const [inline] |
string asdm::Flux::unit | ( | ) | [inline, static] |
ostream& operator<< | ( | ostream & | os, | |
const Flux & | x | |||
) | [friend] |
istream& operator>> | ( | istream & | is, | |
Flux & | x | |||
) | [friend] |
Overloading of >> to read an Flux from an istream.
double asdm::Flux::value [private] |
Definition at line 319 of file Flux.h.
Referenced by equals(), get(), operator!=(), asdm::operator*(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), asdm::operator<<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), asdm::operator>>(), toIDLFlux(), toString(), and toStringI().