casa
5.7.0-16
|
The Angle class implements a quantity of angle in radians. More...
#include <Angle.h>
Public Member Functions | |
Angle () | |
The nullary constructor (default). More... | |
Angle (const Angle &) | |
The copy constructor. More... | |
Angle (const std::string &s) | |
A constructor from a string representation. More... | |
Angle (const asdmIDLTypes::IDLAngle &idlAngle) | |
A constructor from a CORBA/IDL representation. More... | |
Angle (double value) | |
A constructor from a value in double precision. More... | |
virtual | ~Angle () |
The destructor. More... | |
void | toBin (EndianOSStream &eoss) |
Write the binary representation of this to an EndianOSStream . More... | |
Angle & | operator= (const Angle &x) |
An assignment operator Angle = Angle. More... | |
Angle & | operator= (const double d) |
An assignment operator Angle = double. More... | |
Angle & | operator+= (const Angle &x) |
Operator increment and assign. More... | |
Angle & | operator-= (const Angle &x) |
Operator decrement and assign. More... | |
Angle & | operator*= (const double x) |
Operator multiply and assign. More... | |
Angle & | operator/= (const double x) |
Operator divide and assign. More... | |
Angle | operator+ (const Angle &x) const |
Addition operator. More... | |
Angle | operator- (const Angle &x) const |
Substraction operator. More... | |
Angle | operator* (const double x) const |
Multiplication operator. More... | |
Angle | operator/ (const double x) const |
Division operator. More... | |
bool | operator< (const Angle &x) const |
Comparison operator. More... | |
bool | operator> (const Angle &x) const |
Comparison operator. More... | |
bool | operator<= (const Angle &x) const |
Comparison operator. More... | |
bool | operator>= (const Angle &x) const |
Comparison operator. More... | |
bool | operator== (const Angle &x) const |
Comparision operator. More... | |
bool | equals (const Angle &x) const |
Comparison method. More... | |
bool | operator!= (const Angle &x) const |
Comparison operator. More... | |
bool | isZero () const |
Comparison method. More... | |
Angle | operator- () const |
Unary operator. More... | |
Angle | 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 Angle. More... | |
asdmIDLTypes::IDLAngle | toIDLAngle () const |
Return the IDLAngle representation of the Angle. 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 Angle | getAngle (StringTokenizer &st) throw (NumberFormatException) |
Parse the next (string) token of a StringTokenizer into an angle. More... | |
static void | toBin (const std::vector< Angle > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of Angle to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< Angle > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of Angle to a EndianOSStream. More... | |
static void | toBin (const std::vector< std::vector< std::vector< Angle > > > &angle, EndianOSStream &eoss) |
Write the binary representation of a vector of vector of vector of Angle to a EndianOSStream. More... | |
static Angle | fromBin (EndianIStream &eis) |
Read the binary representation of an Angle from a EndianIStream and use the read value to set an Angle. More... | |
static std::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. More... | |
static std::vector < std::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. More... | |
static std::vector < std::vector< std::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. More... | |
static std::string | unit () |
Returns the abbreviated name of the unit implicitely associated to any Angle. More... | |
Private Attributes | |
double | value |
Friends | |
Angle | operator* (double d, const Angle &x) |
Overloading of multiplication operator. More... | |
std::ostream & | operator<< (std::ostream &os, const Angle &x) |
Overloading of << to output the value an Angle on an ostream. More... | |
std::istream & | operator>> (std::istream &is, Angle &x) |
Overloading of >> to read an Angle from an istream. More... | |
The Angle class implements a quantity of angle in radians.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
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 |
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 |
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 |
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 |
A static method equivalent to the constructor from a string.
s | a string?. |
|
inline |
|
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.
|
inline |
Conversion operator.
Conversion functions.
Converts into a string.
Definition at line 412 of file Angle.h.
References casa::vpf::toString().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void asdm::Angle::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 Angle to a EndianOSStream.
angle | the vector of Angle to be written |
eoss | the EndianOSStream to be written to |
|
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 |
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 |
|
inline |
|
static |
Conversion into string.
The resulting string contains the representation of the value of this Angle.
|
inline |
Converts into a string.
Definition at line 415 of file Angle.h.
References value.
Referenced by toStringI().
|
inline |
|
inlinestatic |
Returns the abbreviated name of the unit implicitely associated to any Angle.
Definition at line 445 of file Angle.h.
Referenced by casa::MS2ASDM::unitASDMAngle().
|
friend |
|
friend |
Overloading of >> to read an Angle from an istream.
|
private |
Definition at line 313 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().