|
roo_quantity
API Documentation for roo_quantity
|
Representation of resistance, internally stored as floating-point Ohms. More...
#include <resistance.h>
Public Member Functions | |
| Resistance () | |
| Creates a resistance object representing an 'unknown' resistance. | |
| float | inGigaOhms () const |
| Returns the resistance in GigaOhms. | |
| float | inMegaOhms () const |
| Returns the resistance in MegaOhms. | |
| float | inKiloOhms () const |
| Returns the resistance in kiloOhms. | |
| float | inOhms () const |
| Returns the resistance in Ohms. | |
| float | inMilliOhms () const |
| Returns the resistance in milliOhms. | |
| float | inMicroOhms () const |
| Returns the resistance in microOhms. | |
| float | inNanoOhms () const |
| Returns the resistance in nanoOhms. | |
| bool | isUnknown () const |
| Returns whether the object represents an unknown resistance. | |
| bool | operator< (const Resistance &other) const |
| bool | operator== (const Resistance &other) const |
| bool | operator> (const Resistance &other) const |
| bool | operator<= (const Resistance &other) const |
| bool | operator>= (const Resistance &other) const |
| bool | operator!= (const Resistance &other) const |
| Resistance & | operator+= (const Resistance &other) |
| Resistance & | operator-= (const Resistance &other) |
| Resistance & | operator*= (float multi) |
| Resistance & | operator/= (float div) |
Friends | |
| Resistance | UnknownResistance () |
| Returns a resistance object representing an unknown resistance. | |
| Resistance | ResistanceInOhms (float) |
| Returns a resistance object equivalent to the specified resistance expressed in Ohms. | |
Representation of resistance, internally stored as floating-point Ohms.
Definition at line 21 of file resistance.h.
|
inline |
Creates a resistance object representing an 'unknown' resistance.
Definition at line 24 of file resistance.h.
|
inline |
Returns the resistance in GigaOhms.
Definition at line 27 of file resistance.h.
|
inline |
Returns the resistance in kiloOhms.
Definition at line 33 of file resistance.h.
|
inline |
Returns the resistance in MegaOhms.
Definition at line 30 of file resistance.h.
|
inline |
Returns the resistance in microOhms.
Definition at line 42 of file resistance.h.
|
inline |
Returns the resistance in milliOhms.
Definition at line 39 of file resistance.h.
|
inline |
Returns the resistance in nanoOhms.
Definition at line 45 of file resistance.h.
|
inline |
Returns the resistance in Ohms.
Definition at line 36 of file resistance.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/(), and roo_quantity::operator/().
|
inline |
Returns whether the object represents an unknown resistance.
Definition at line 48 of file resistance.h.
|
inline |
Definition at line 70 of file resistance.h.
|
inline |
Definition at line 84 of file resistance.h.
|
inline |
Definition at line 74 of file resistance.h.
References inOhms().
|
inline |
Definition at line 79 of file resistance.h.
References inOhms().
|
inline |
Definition at line 89 of file resistance.h.
|
inline |
Definition at line 50 of file resistance.h.
|
inline |
Definition at line 62 of file resistance.h.
|
inline |
Definition at line 54 of file resistance.h.
|
inline |
Definition at line 58 of file resistance.h.
|
inline |
Definition at line 66 of file resistance.h.
|
friend |
Returns a resistance object equivalent to the specified resistance expressed in Ohms.
Definition at line 139 of file resistance.h.
|
friend |
Returns a resistance object representing an unknown resistance.
Definition at line 117 of file resistance.h.