|
roo_quantity
API Documentation for roo_quantity
|
Representation of charge, internally stored as floating-point Coulombs. More...
#include <charge.h>
Public Member Functions | |
| Charge () | |
| Creates a charge object representing an 'unknown' charge. | |
| float | inKiloCoulombs () const |
| Returns the charge in kiloCoulombs. | |
| float | inCoulombs () const |
| Returns the charge in Coulombs. | |
| float | inMilliCoulombs () const |
| Returns the charge in milliCoulombs. | |
| float | inMicroCoulombs () const |
| Returns the charge in microCoulombs. | |
| bool | isUnknown () const |
| Returns whether the object represents an unknown charge. | |
| bool | operator< (const Charge &other) const |
| bool | operator== (const Charge &other) const |
| bool | operator> (const Charge &other) const |
| bool | operator<= (const Charge &other) const |
| bool | operator>= (const Charge &other) const |
| bool | operator!= (const Charge &other) const |
| Charge & | operator+= (const Charge &other) |
| Charge & | operator-= (const Charge &other) |
| Charge & | operator*= (float multi) |
| Charge & | operator/= (float div) |
Friends | |
| Charge | UnknownCharge () |
| Returns a charge object representing an unknown charge. | |
| Charge | ChargeInCoulombs (float) |
| Returns a charge object equivalent to the specified charge expressed in Coulombs. | |
Representation of charge, internally stored as floating-point Coulombs.
|
inline |
|
inline |
Returns the charge in Coulombs.
Definition at line 28 of file charge.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/(), roo_quantity::operator/(), roo_quantity::operator/(), and roo_quantity::operator/().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 59 of file charge.h.
References inCoulombs().
Definition at line 64 of file charge.h.
References inCoulombs().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
friend |