roo_quantity
API Documentation for roo_quantity
Loading...
Searching...
No Matches
voltage.h File Reference
#include <cmath>
#include "roo_flags.h"
#include "roo_logging.h"
#include "roo_quantity/current.h"
#include "roo_quantity/power.h"
Include dependency graph for voltage.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::Voltage
 Representation of voltage, internally stored as floating-point Volts. More...
 

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Voltage roo_quantity::VoltageInVolts (float voltage)
 Returns a voltage object equivalent to the specified voltage expressed in Volts.
 
Voltage roo_quantity::UnknownVoltage ()
 Returns a voltage object representing an unknown voltage.
 
Voltage roo_quantity::VoltageInKiloVolts (float voltage)
 Returns a voltage object equivalent to the specified voltage expressed in kiloVolts.
 
Voltage roo_quantity::VoltageInMilliVolts (float voltage)
 Returns a voltage object equivalent to the specified voltage expressed in milliVolts.
 
Voltage roo_quantity::VoltageInMicroVolts (float voltage)
 Returns a voltage object equivalent to the specified voltage expressed in microVolts.
 
Voltage roo_quantity::operator+ (Voltage a, Voltage b)
 
Voltage roo_quantity::operator- (Voltage a, Voltage b)
 
Voltage roo_quantity::operator- (Voltage a)
 
Voltage roo_quantity::operator* (Voltage a, float b)
 
Voltage roo_quantity::operator* (float a, Voltage b)
 
Voltage roo_quantity::operator/ (Voltage a, float b)
 
float roo_quantity::operator/ (Voltage a, Voltage b)
 
Power roo_quantity::operator* (Voltage a, Current b)
 Vs power.
 
Power roo_quantity::operator* (Current a, Voltage b)
 
Voltage roo_quantity::operator/ (Power a, Current b)
 
Current roo_quantity::operator/ (Power a, Voltage b)
 
Work roo_quantity::operator* (Voltage a, Charge b)
 Vs work.
 
Work roo_quantity::operator* (Charge a, Voltage b)
 
Voltage roo_quantity::operator/ (Work a, Charge b)
 
Charge roo_quantity::operator/ (Work a, Voltage b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Voltage &val)