|
roo_quantity
API Documentation for roo_quantity
|
Representation of voltage, internally stored as floating-point Volts. More...
#include <voltage.h>
Public Member Functions | |
| Voltage () | |
| Creates a voltage object representing an 'unknown' voltage. | |
| float | inKiloVolts () const |
| Returns the voltage in kiloVolts. | |
| float | inVolts () const |
| Returns the voltage in Volts. | |
| float | inMilliVolts () const |
| Returns the voltage in milliVolts. | |
| float | inMicroVolts () const |
| Returns the voltage in microVolts. | |
| bool | isUnknown () const |
| Returns whether the object represents an unknown voltage. | |
| bool | operator< (const Voltage &other) const |
| bool | operator== (const Voltage &other) const |
| bool | operator> (const Voltage &other) const |
| bool | operator<= (const Voltage &other) const |
| bool | operator>= (const Voltage &other) const |
| bool | operator!= (const Voltage &other) const |
| Voltage & | operator+= (const Voltage &other) |
| Voltage & | operator-= (const Voltage &other) |
| Voltage & | operator*= (float multi) |
| Voltage & | operator/= (float div) |
Friends | |
| Voltage | UnknownVoltage () |
| Returns a voltage object representing an unknown voltage. | |
| Voltage | VoltageInVolts (float) |
| Returns a voltage object equivalent to the specified voltage expressed in Volts. | |
Representation of voltage, internally stored as floating-point Volts.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns the voltage in Volts.
Definition at line 30 of file voltage.h.
Referenced by roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), roo_quantity::operator*(), 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/(), roo_quantity::operator/(), roo_quantity::operator/(), and roo_quantity::operator/().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |