casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Angle Class Reference

Defines a Class for those parameters being angles. More...

#include <ATMAngle.h>

Public Member Functions

 Angle ()
 Default constructor. More...
 
 Angle (double angle)
 A full constructor: Angle value in default units (SI: radians) More...
 
 Angle (double angle, const string &units)
 A full constructor: Angle value + units. More...
 
virtual ~Angle ()
 Destructor. More...
 
double get () const
 Accessor to get the angle value in SI units (rad) More...
 
double get (const string &units) const
 Accessor to the angle value in specified units. More...
 
Angleoperator= (const Angle &rhs)
 Operator "equal to a Angle". More...
 
Angleoperator= (double rhs)
 Operator "equal to a double converted to Angle in Hz". More...
 
Angle operator+ (const Angle &rhs)
 Operator "addition of angles". More...
 
Angle operator- (const Angle &rhs)
 Operator "substraction of angles". More...
 
Angle operator* (double scf)
 Operator "multiplication of a angle by a double". More...
 
Angle operator* (float scf)
 Operator "multiplication of a angle by a float". More...
 
Angle operator* (int scf)
 Operator "multiplication of a angle by an int". More...
 
Angle operator* (unsigned int scf)
 Operator "multiplication of a angle by an unsigned int". More...
 
Angle operator/ (double scf)
 Operator "division of a angle by a double". More...
 
Angle operator/ (float scf)
 Operator "division of a angle by a float". More...
 
Angle operator/ (int scf)
 Operator "division of a angle by an int". More...
 
Angle operator/ (unsigned int scf)
 Operator "division of a angle by an unsigned int". More...
 
bool operator< (const Angle &rhs) const
 Operator "comparator < for two angles". More...
 
bool operator> (const Angle &rhs) const
 Operator "comparator > for two angles". More...
 
bool operator<= (const Angle &rhs) const
 Operator "comparator <= for two angles". More...
 
bool operator>= (const Angle &rhs) const
 Operator "comparator >= for two angles". More...
 
bool operator== (const Angle &rhs) const
 Operator "comparator == for two angles". More...
 
bool operator!= (const Angle &rhs) const
 Operator "comparator != for two angles". More...
 

Private Attributes

double valueIS_
 

Detailed Description

Defines a Class for those parameters being angles.

Defines a Class for those physical parameters having units of angle. For example the Total Phase Delay can be expressed as an angle (but also as a length).

Definition at line 44 of file ATMAngle.h.

Constructor & Destructor Documentation

Angle::Angle ( )

Default constructor.

Referenced by operator*(), operator+(), operator-(), and operator/().

Angle::Angle ( double  angle)

A full constructor: Angle value in default units (SI: radians)

Angle::Angle ( double  angle,
const string &  units 
)

A full constructor: Angle value + units.

Implemented units are: deg [DEG], rad [RAD] [Rad]

virtual Angle::~Angle ( )
virtual

Destructor.

Member Function Documentation

double Angle::get ( ) const
inline

Accessor to get the angle value in SI units (rad)

Definition at line 58 of file ATMAngle.h.

References valueIS_.

Referenced by WVRMeasurement::getAirMass(), operator!=(), operator+(), operator-(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

double Angle::get ( const string &  units) const

Accessor to the angle value in specified units.

Implemented units are: deg [DEG], rad [RAD] [Rad]. If none of these implemented units is given, the SI value will be returned.

bool Angle::operator!= ( const Angle rhs) const
inline

Operator "comparator != for two angles".

Definition at line 98 of file ATMAngle.h.

References get(), and valueIS_.

Angle Angle::operator* ( double  scf)
inline

Operator "multiplication of a angle by a double".

Definition at line 72 of file ATMAngle.h.

References Angle(), and valueIS_.

Angle Angle::operator* ( float  scf)
inline

Operator "multiplication of a angle by a float".

Definition at line 74 of file ATMAngle.h.

References Angle(), and valueIS_.

Angle Angle::operator* ( int  scf)
inline

Operator "multiplication of a angle by an int".

Definition at line 76 of file ATMAngle.h.

References Angle(), and valueIS_.

Angle Angle::operator* ( unsigned int  scf)
inline

Operator "multiplication of a angle by an unsigned int".

Definition at line 78 of file ATMAngle.h.

References Angle(), and valueIS_.

Angle Angle::operator+ ( const Angle rhs)
inline

Operator "addition of angles".

Definition at line 68 of file ATMAngle.h.

References Angle(), get(), and valueIS_.

Angle Angle::operator- ( const Angle rhs)
inline

Operator "substraction of angles".

Definition at line 70 of file ATMAngle.h.

References Angle(), get(), and valueIS_.

Angle Angle::operator/ ( double  scf)
inline

Operator "division of a angle by a double".

Definition at line 80 of file ATMAngle.h.

References Angle(), and valueIS_.

Angle Angle::operator/ ( float  scf)
inline

Operator "division of a angle by a float".

Definition at line 82 of file ATMAngle.h.

References Angle(), and valueIS_.

Angle Angle::operator/ ( int  scf)
inline

Operator "division of a angle by an int".

Definition at line 84 of file ATMAngle.h.

References Angle(), and valueIS_.

Angle Angle::operator/ ( unsigned int  scf)
inline

Operator "division of a angle by an unsigned int".

Definition at line 86 of file ATMAngle.h.

References Angle(), and valueIS_.

bool Angle::operator< ( const Angle rhs) const
inline

Operator "comparator < for two angles".

Definition at line 88 of file ATMAngle.h.

References get(), and valueIS_.

bool Angle::operator<= ( const Angle rhs) const
inline

Operator "comparator <= for two angles".

Definition at line 92 of file ATMAngle.h.

References get(), and valueIS_.

Angle& Angle::operator= ( const Angle rhs)
inline

Operator "equal to a Angle".

Definition at line 64 of file ATMAngle.h.

References valueIS_.

Angle& Angle::operator= ( double  rhs)
inline

Operator "equal to a double converted to Angle in Hz".

Definition at line 66 of file ATMAngle.h.

References valueIS_.

bool Angle::operator== ( const Angle rhs) const
inline

Operator "comparator == for two angles".

Definition at line 96 of file ATMAngle.h.

References get(), and valueIS_.

bool Angle::operator> ( const Angle rhs) const
inline

Operator "comparator > for two angles".

Definition at line 90 of file ATMAngle.h.

References get(), and valueIS_.

bool Angle::operator>= ( const Angle rhs) const
inline

Operator "comparator >= for two angles".

Definition at line 94 of file ATMAngle.h.

References get(), and valueIS_.

Member Data Documentation

double Angle::valueIS_
private

The documentation for this class was generated from the following file: