|
roo_quantity
API Documentation for roo_quantity
|
Representation of power, internally stored as floating-point Watts. More...
#include <power.h>
Public Member Functions | |
| Power () | |
| Creates a power object representing an 'unknown' power. | |
| float | inGigaWatts () const |
| Returns the power in gigaWatts. | |
| float | inMegaWatts () const |
| Returns the power in megaWatts. | |
| float | inKiloWatts () const |
| Returns the power in kiloWatts. | |
| float | inWatts () const |
| Returns the power in Watts. | |
| float | inMilliWatts () const |
| Returns the power in milliWatts. | |
| float | inMicroWatts () const |
| Returns the power in microWatts. | |
| bool | isUnknown () const |
| Returns whether the object represents an unknown power. | |
| bool | operator< (const Power &other) const |
| bool | operator== (const Power &other) const |
| bool | operator> (const Power &other) const |
| bool | operator<= (const Power &other) const |
| bool | operator>= (const Power &other) const |
| bool | operator!= (const Power &other) const |
| Power & | operator+= (const Power &other) |
| Power & | operator-= (const Power &other) |
| Power & | operator*= (float multi) |
| Power & | operator/= (float div) |
Friends | |
| Power | UnknownPower () |
| Returns a power object representing an unknown power. | |
| Power | PowerInWatts (float) |
| Returns a power object equivalent to the specified power expressed in Watts. | |
Representation of power, internally stored as floating-point Watts.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the power in Watts.
Definition at line 36 of file power.h.
Referenced by roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator+(), operator+=(), roo_quantity::operator-(), roo_quantity::operator-(), operator-=(), roo_quantity::operator/(), roo_quantity::operator/(), roo_quantity::operator/(), roo_quantity::operator/(), and roo_quantity::operator/().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |