roo_quantity
API Documentation for roo_quantity
Loading...
Searching...
No Matches
charge.h File Reference
#include <cmath>
#include "roo_flags.h"
#include "roo_logging.h"
Include dependency graph for charge.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  roo_quantity::Charge
 Representation of charge, internally stored as floating-point Coulombs. More...
 

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Charge roo_quantity::ChargeInCoulombs (float charge)
 Returns a charge object equivalent to the specified charge expressed in Coulombs.
 
Charge roo_quantity::UnknownCharge ()
 Returns a charge object representing an unknown charge.
 
Charge roo_quantity::ChargeInKiloCoulombs (float charge)
 Returns a charge object equivalent to the specified charge expressed in kiloCoulombs.
 
Charge roo_quantity::ChargeInMilliCoulombs (float charge)
 Returns a charge object equivalent to the specified charge expressed in milliCoulombs.
 
Charge roo_quantity::ChargeInMicroCoulombs (float charge)
 Returns a charge object equivalent to the specified charge expressed in microCoulombs.
 
Charge roo_quantity::operator+ (Charge a, Charge b)
 
Charge roo_quantity::operator- (Charge a, Charge b)
 
Charge roo_quantity::operator- (Charge a)
 
Charge roo_quantity::operator* (Charge a, float b)
 
Charge roo_quantity::operator* (float a, Charge b)
 
Charge roo_quantity::operator/ (Charge a, float b)
 
float roo_quantity::operator/ (Charge a, Charge b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Charge &val)