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. | |
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. | |
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. | |
The Angle class implements a quantity of angle in radians.
Definition at line 59 of file Angle.h.
| 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] |
| bool asdm::Angle::equals | ( | const Angle & | x | ) | const [inline] |
| 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<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 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] |
| 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.
| asdm::Angle::operator string | ( | ) | const [inline] |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 418 of file Angle.h.
References toString().
| 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 | ) | [inline] |
| Angle asdm::Angle::operator+ | ( | ) | const [inline] |
| Angle asdm::Angle::operator- | ( | ) | const [inline] |
| Angle asdm::Angle::operator/ | ( | const double | x | ) | const [inline] |
| Angle & asdm::Angle::operator/= | ( | const double | x | ) | [inline] |
| bool asdm::Angle::operator< | ( | const Angle & | x | ) | const [inline] |
| bool asdm::Angle::operator<= | ( | const Angle & | x | ) | const [inline] |
| Angle & asdm::Angle::operator= | ( | const double | d | ) | [inline] |
| 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 [inline] |
| 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< 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< 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 |
| void asdm::Angle::toBin | ( | EndianOSStream & | eoss | ) |
Write the binary representation of this to an EndianOSStream .
| eoss | a reference to an EndianOSStream . |
| IDLAngle asdm::Angle::toIDLAngle | ( | ) | const [inline] |
| 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().
| 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::toStringI | ( | ) | const [inline] |
| 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().
| ostream& operator<< | ( | ostream & | os, | |
| const Angle & | x | |||
| ) | [friend] |
| 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().
1.6.1