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