SST::Units Class Reference

Helper class internal to UnitAlgebra. More...

#include <unitAlgebra.h>

Public Member Functions

 Units (std::string units, sst_dec_float &multiplier)
 Create a new instantiation of a Units with a base unit string, and multiplier.
Unitsoperator= (const Units &v)
 Assignment operator.
Unitsoperator*= (const Units &v)
 Self-multiplication operator.
Unitsoperator/= (const Units &v)
 Self-division operator.
bool operator== (const Units &lhs) const
 Equality Operator.
bool operator!= (const Units &lhs) const
 Inequality Operator.
Unitsinvert ()
 Perform a reciprocal operation.
std::string toString () const
 Return a String representation if this Unit.

Static Public Member Functions

static void registerBaseUnit (std::string u)
 Create a new Base Unit type.
static void registerCompoundUnit (std::string u, std::string v)
 Create a new Compount Unit type.

Friends

class boost::serialization::access

Detailed Description

Helper class internal to UnitAlgebra.

Contains information on valid units


Constructor & Destructor Documentation

Units::Units ( std::string  units,
sst_dec_float &  multiplier 
)

Create a new instantiation of a Units with a base unit string, and multiplier.

Parameters:
units String representing the new unit
multiplier Value by which to multiply to get to this unit

Member Function Documentation

Units & Units::invert (  ) 

Perform a reciprocal operation.

Numerator and Denominator swap.

Referenced by SST::UnitAlgebra::invert().


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

Generated on 14 Sep 2015 for SST by  doxygen 1.6.1