casa
$Rev:20696$
|
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. | |
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. | |
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. | |
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.
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] |
asdm::Flux::Flux | ( | ) |
The nullary constructor (default).
asdm::Flux::Flux | ( | const Flux & | ) |
The copy constructor.
asdm::Flux::Flux | ( | const string & | s | ) |
A constructor from a string representation.
The string passed in argument must be parsable into a double precision number to express the value in radian of the angle.
s | a string. |
asdm::Flux::Flux | ( | const IDLFlux & | idlFlux | ) |
A constructor from a CORBA/IDL representation.
idlFlux | a cons ref to an IDLFlux. |
asdm::Flux::Flux | ( | double | value | ) |
A constructor from a value in double precision.
The value passed in argument defines the value of the Flux in radian.
virtual asdm::Flux::~Flux | ( | ) | [virtual] |
The destructor.
bool asdm::Flux::equals | ( | const Flux & | x | ) | const [inline] |
bool asdm::Flux::equals | ( | const Flux & | x | ) | const |
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<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<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 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 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?. |
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] |
double asdm::Flux::get | ( | ) | const |
Return the double precision value of the Flux.
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. |
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.
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().
asdm::Flux::operator string | ( | ) | const |
Conversion operator.
Converts into a string.
bool asdm::Flux::operator!= | ( | const Flux & | x | ) | const |
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 | ) | const |
Multiplication operator.
x | a value in double precision. |
Flux & asdm::Flux::operator*= | ( | const double | x | ) | [inline] |
Flux& asdm::Flux::operator*= | ( | const double | x | ) |
Operator multiply and assign.
x | a value in double precision. |
Addition operator.
x | a const reference to a Flux. |
Flux asdm::Flux::operator+ | ( | ) | const |
Unary operator.
Unary plus.
Flux asdm::Flux::operator+ | ( | ) | const [inline] |
Operator increment and assign.
x | a const reference to an Flux. |
Substraction operator.
x | a const reference to a Flux. |
Flux asdm::Flux::operator- | ( | ) | const |
Unary operator.
Opposite.
Flux asdm::Flux::operator- | ( | ) | const [inline] |
Operator decrement and assign.
x | a const reference to an Flux. |
Flux asdm::Flux::operator/ | ( | const double | x | ) | const [inline] |
Flux asdm::Flux::operator/ | ( | const double | x | ) | const |
Division operator.
d | a value in double precision. |
Flux& asdm::Flux::operator/= | ( | const double | x | ) |
Operator divide and assign.
x | a valye in double precision. |
Flux & asdm::Flux::operator/= | ( | const double | x | ) | [inline] |
bool asdm::Flux::operator< | ( | const Flux & | x | ) | const |
bool asdm::Flux::operator< | ( | const Flux & | x | ) | const [inline] |
bool asdm::Flux::operator<= | ( | const Flux & | x | ) | const |
bool asdm::Flux::operator<= | ( | const Flux & | x | ) | const [inline] |
Flux& asdm::Flux::operator= | ( | const double | d | ) |
An assignment operator Flux = double.
d | a value in double precision. |
Flux & asdm::Flux::operator= | ( | const double | d | ) | [inline] |
bool asdm::Flux::operator== | ( | const Flux & | x | ) | const |
bool asdm::Flux::operator== | ( | const Flux & | x | ) | const [inline] |
bool asdm::Flux::operator> | ( | const Flux & | x | ) | const |
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 |
void asdm::Flux::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
void asdm::Flux::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
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 |
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 |
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< 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< 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< 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 |
IDLFlux asdm::Flux::toIDLFlux | ( | ) | const |
Return the IDLFlux representation of the Flux.
IDLFlux asdm::Flux::toIDLFlux | ( | ) | const [inline] |
static string asdm::Flux::toString | ( | double | ) | [static] |
Conversion into string.
The resulting string contains the representation of the value of this Flux.
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::toString | ( | ) | const |
Converts into a string.
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().
string asdm::Flux::toStringI | ( | ) | const [inline] |
string asdm::Flux::toStringI | ( | ) | const |
Idem toString.
string asdm::Flux::unit | ( | ) | [inline, static] |
static string asdm::Flux::unit | ( | ) | [static] |
Returns the abbreviated name of the unit implicitely associated to any Flux.
ostream& operator<< | ( | ostream & | os, |
const Flux & | x | ||
) | [friend] |
ostream& operator<< | ( | ostream & | os, |
const Flux & | x | ||
) | [friend] |
istream& operator>> | ( | istream & | is, |
Flux & | x | ||
) | [friend] |
Overloading of >> to read an Flux from an istream.
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().