My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::Length Class Reference
Inheritance diagram for gcp::util::Length:
gcp::util::ConformableQuantity gcp::util::Wavelength

Classes

class  Centimeters
 
class  Kilometers
 
class  Meters
 
class  Microns
 

Public Member Functions

 Length ()
 
 Length (const Centimeters &units, double cm)
 
 Length (const Meters &units, double m)
 
 Length (const Length &length)
 
virtual ~Length ()
 
void setCentimeters (double cm)
 
void setMeters (double m)
 
void setKilometers (double km)
 
double centimeters () const
 
double meters () const
 
double kilometers () const
 
Length operator+ (Length &length)
 
Length operator- (Length &length)
 
Length operator* (double multFac)
 
double operator/ (Length &length)
 
void initialize ()
 
- Public Member Functions inherited from gcp::util::ConformableQuantity
 ConformableQuantity ()
 
virtual ~ConformableQuantity ()
 
bool isFinite ()
 

Static Public Attributes

static const unsigned cmPerMeter_ = 100
 
static const unsigned cmPerKm_ = 100000
 
static const unsigned micronsPerCm_ = 10000
 
static const double metersPerMile_ = 1609.344
 
static const double cmPerMile_ = 160934.4
 

Protected Attributes

double cm_
 
- Protected Attributes inherited from gcp::util::ConformableQuantity
bool finite_
 

Friends

std::ostream & operator<< (std::ostream &os, Length &length)
 

Additional Inherited Members

- Protected Member Functions inherited from gcp::util::ConformableQuantity
void setFinite (bool finite)
 

Constructor & Destructor Documentation

Length::Length ( )

Constructor.

....................................................................... Constructor.

Length::Length ( const Length length)

Copy constructor

....................................................................... Copy constructor.

Length::~Length ( )
virtual

Destructor.

....................................................................... Destructor.

Member Function Documentation

double gcp::util::Length::centimeters ( ) const
inline

Get the length of this object

Length Length::operator* ( double  multFac)

Multiply a length by a constant

....................................................................... Multiply a length by a constant

Length Length::operator+ ( Length length)

Add two Lengths

....................................................................... Add two Lengths

Length Length::operator- ( Length length)

Subtract two Lengths

....................................................................... Subtract two Lengths

double Length::operator/ ( Length length)

Divide two Lengths

....................................................................... Divide two Lengths

void gcp::util::Length::setCentimeters ( double  cm)
inline

Set the length of this object

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
Length length 
)
friend

Allows cout << Length

....................................................................... Allows cout << Length


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