casa
5.7.0-16
|
The Temperature class implements a quantity of temperature in degrees Kelvin. More...
#include <Temperature.h>
Public Member Functions | |
Temperature () | |
The nullary constructor (default). More... | |
Temperature (const Temperature &) | |
The copy constructor. More... | |
Temperature (const std::string &s) | |
A constructor from a string representation. More... | |
Temperature (const asdmIDLTypes::IDLTemperature &idlTemperature) | |
A constructor from a CORBA/IDL representation. More... | |
Temperature (double value) | |
A constructor from a value in double precision. More... | |
virtual | ~Temperature () |
The destructor. More... | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . More... | |
Temperature & | operator= (const Temperature &x) |
An assignment operator Temperature = Temperature. More... | |
Temperature & | operator= (const double d) |
An assignment operator Temperature = double. More... | |
Temperature & | operator+= (const Temperature &x) |
Operator increment and assign. More... | |
Temperature & | operator-= (const Temperature &x) |
Operator decrement and assign. More... | |
Temperature & | operator*= (const double x) |
Operator multiply and assign. More... | |
Temperature & | operator/= (const double x) |
Operator divide and assign. More... | |
Temperature | operator+ (const Temperature &x) const |
Addition operator. More... | |
Temperature | operator- (const Temperature &x) const |
Substraction operator. More... | |
Temperature | operator* (const double x) const |
Multiplication operator. More... | |
Temperature | operator/ (const double x) const |
Division operator. More... | |
bool | operator< (const Temperature &x) const |
Comparison operator. More... | |
bool | operator> (const Temperature &x) const |
Comparison operator. More... | |
bool | operator<= (const Temperature &x) const |
Comparison operator. More... | |
bool | operator>= (const Temperature &x) const |
Comparison operator. More... | |
bool | operator== (const Temperature &x) const |
Comparision operator. More... | |
bool | equals (const Temperature &x) const |
Comparison method. More... | |
bool | operator!= (const Temperature &x) const |
Comparison operator. More... | |
bool | isZero () const |
Comparison method. More... | |
Temperature | operator- () const |
Unary operator. More... | |
Temperature | operator+ () const |
Unary operator. More... | |
std::string | toString () const |
Converts into a string. More... | |
std::string | toStringI () const |
Idem toString. More... | |
operator std::string () const | |
Conversion operator. More... | |
double | get () const |
Return the double precision value of the Temperature. More... | |
asdmIDLTypes::IDLTemperature | toIDLTemperature () const |
Return the IDLTemperature representation of the Temperature. More... | |
Static Public Member Functions | |
static double | fromString (const std::string &s) |
A static method equivalent to the constructor from a string. More... | |
static std::string | toString (double) |
Conversion into string. More... | |
static Temperature | getTemperature (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. More... | |
static void | toBin (const std::vector< Temperature > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Temperature to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< Temperature > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Temperature to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< std::vector< Temperature > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Temperature to a EndianOSStream. More... | |
static Temperature | fromBin (EndianIStream &eis) |
Read the binary representation of an Temperature from a EndianIStream and use the read value to set an Temperature. More... | |
static std::vector< Temperature > | from1DBin (EndianIStream &eis) |
Read the binary representation of a vector of Temperature from an EndianIStream and use the read value to set a vector of Temperature. More... | |
static std::vector < std::vector< Temperature > > | from2DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of Temperature from an EndianIStream and use the read value to set a vector of vector of Temperature. More... | |
static std::vector < std::vector< std::vector < Temperature > > > | from3DBin (EndianIStream &eis) |
Read the binary representation of a vector of vector of vector of Temperature from an EndianIStream and use the read value to set a vector of vector of vector of Temperature. More... | |
static std::string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Temperature. More... | |
Private Attributes | |
double | value |
Friends | |
Temperature | operator* (double d, const Temperature &x) |
Overloading of multiplication operator. More... | |
std::ostream & | operator<< (std::ostream &os, const Temperature &x) |
Overloading of << to output the value an Temperature on an ostream. More... | |
std::istream & | operator>> (std::istream &is, Temperature &x) |
Overloading of >> to read an Temperature from an istream. More... | |
The Temperature class implements a quantity of temperature in degrees Kelvin.
Definition at line 53 of file Temperature.h.
|
inline |
The nullary constructor (default).
Temperature constructors.
Definition at line 316 of file Temperature.h.
|
inline |
The copy constructor.
Definition at line 318 of file Temperature.h.
|
inline |
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. |
Definition at line 324 of file Temperature.h.
|
inline |
A constructor from a CORBA/IDL representation.
idlTemperature | a cons ref to an IDLTemperature. |
Definition at line 321 of file Temperature.h.
|
inline |
A constructor from a value in double precision.
The value passed in argument defines the value of the Temperature in radian.
Definition at line 326 of file Temperature.h.
|
inlinevirtual |
|
inline |
Comparison method.
Equality.
x | a const reference to a Temperature. |
Definition at line 391 of file Temperature.h.
References value.
|
static |
Read the binary representation of a vector of Temperature from an EndianIStream and use the read value to set a vector of Temperature.
eis | a reference to the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of Temperature from an EndianIStream and use the read value to set a vector of vector of Temperature.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of a vector of vector of vector of Temperature from an EndianIStream and use the read value to set a vector of vector of vector of Temperature.
eis | the EndianIStream to be read |
|
static |
Read the binary representation of an Temperature from a EndianIStream and use the read value to set an Temperature.
eis | the EndianStream to be read |
|
static |
A static method equivalent to the constructor from a string.
s | a string?. |
|
inline |
Return the double precision value of the Temperature.
Definition at line 421 of file Temperature.h.
References value.
|
static |
Parse the next (string) token of a StringTokenizer into an angle.
st | a reference to a StringTokenizer. |
bool asdm::Temperature::isZero | ( | ) | const |
Comparison method.
Test nullity.
|
inline |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 412 of file Temperature.h.
References casa::vpf::toString().
|
inline |
Comparison operator.
Not-equal.
x | a const reference to a Temperature. |
Definition at line 397 of file Temperature.h.
References value.
|
inline |
Multiplication operator.
x | a value in double precision. |
Definition at line 368 of file Temperature.h.
References value.
|
inline |
Operator multiply and assign.
x | a value in double precision. |
Definition at line 349 of file Temperature.h.
References value.
|
inline |
Addition operator.
arithmetic functions
x | a const reference to a Temperature. |
Definition at line 358 of file Temperature.h.
References value.
|
inline |
|
inline |
Operator increment and assign.
assignment with arithmetic operators
x | a const reference to an Temperature. |
Definition at line 341 of file Temperature.h.
References value.
|
inline |
Substraction operator.
x | a const reference to a Temperature. |
Definition at line 363 of file Temperature.h.
References value.
|
inline |
Unary operator.
unary - and + operators
Opposite.
Definition at line 401 of file Temperature.h.
References value.
|
inline |
Operator decrement and assign.
x | a const reference to an Temperature. |
Definition at line 345 of file Temperature.h.
References value.
|
inline |
Division operator.
d | a value in double precision. |
Definition at line 373 of file Temperature.h.
References value.
|
inline |
Operator divide and assign.
x | a valye in double precision. |
Definition at line 353 of file Temperature.h.
References value.
|
inline |
Comparison operator.
comparison operators
Less-than.
x | a const reference to a Temperature. |
Definition at line 379 of file Temperature.h.
References value.
|
inline |
Comparison operator.
Less-than or equal.
x | a const reference to a Temperature. |
Definition at line 385 of file Temperature.h.
References value.
|
inline |
An assignment operator Temperature = Temperature.
assignment operator
x | a const reference to an Temperature. |
Definition at line 331 of file Temperature.h.
References value.
|
inline |
An assignment operator Temperature = double.
assignment operator
d | a value in double precision. |
Definition at line 336 of file Temperature.h.
References value.
|
inline |
Comparision operator.
Equal-to.
x | a const reference to a Temperature. |
Definition at line 394 of file Temperature.h.
References value.
|
inline |
Comparison operator.
Greater-than.
x | a const reference to a Temperature. |
Definition at line 382 of file Temperature.h.
References value.
|
inline |
Comparison operator.
Greater-than or equal.
x | a const reference to a Temperature. |
Definition at line 388 of file Temperature.h.
References value.
void asdm::Temperature::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
eoss | a reference to an EndianOSStream . |
|
static |
Write the binary representation of a vector of Temperature to a EndianOSStream.
angle | the vector of Temperature to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of Temperature to a EndianOSStream.
angle | the vector of vector of Temperature to be written |
eoss | the EndianOSStream to be written to |
|
static |
Write the binary representation of a vector of vector of vector of Temperature to a EndianOSStream.
angle | the vector of vector of vector of Temperature to be written |
eoss | the EndianOSStream to be written to |
|
inline |
Return the IDLTemperature representation of the Temperature.
Definition at line 425 of file Temperature.h.
References value.
|
static |
Conversion into string.
The resulting string contains the representation of the value of this Temperature.
|
inline |
Converts into a string.
Definition at line 415 of file Temperature.h.
References value.
Referenced by toStringI().
|
inline |
|
inlinestatic |
Returns the abbreviated name of the unit implicitely associated to any Temperature.
Definition at line 445 of file Temperature.h.
Referenced by casa::MS2ASDM::unitASDMTemp().
|
friend |
Overloading of multiplication operator.
d | a value in double precision . |
x | a const reference to a Temperature . |
|
friend |
Overloading of << to output the value an Temperature on an ostream.
os | a reference to the ostream to be written on. |
x | a const reference to a Temperature. |
|
friend |
Overloading of >> to read an Temperature from an istream.
|
private |
Definition at line 313 of file Temperature.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>>(), toIDLTemperature(), toString(), and toStringI().