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

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Resistance roo_quantity::ResistanceInOhms (float resistance)
 Returns a resistance object equivalent to the specified resistance expressed in Ohms.
 
Resistance roo_quantity::UnknownResistance ()
 Returns a resistance object representing an unknown resistance.
 
Resistance roo_quantity::ResistanceInGigaOhms (float resistance)
 Returns a resistance object equivalent to the specified resistance expressed in GigaOhms.
 
Resistance roo_quantity::ResistanceInMegaOhms (float resistance)
 Returns a resistance object equivalent to the specified resistance expressed in MegaOhms.
 
Resistance roo_quantity::ResistanceInKiloOhms (float resistance)
 Returns a resistance object equivalent to the specified resistance expressed in kiloOhms.
 
Resistance roo_quantity::ResistanceInMilliOhms (float resistance)
 Returns a resistance object equivalent to the specified resistance expressed in milliOhms.
 
Resistance roo_quantity::ResistanceInMicroOhms (float resistance)
 Returns a resistance object equivalent to the specified resistance expressed in microOhms.
 
Resistance roo_quantity::ResistanceInNanoOhms (float resistance)
 Returns a resistance object equivalent to the specified resistance expressed in microOhms.
 
Resistance roo_quantity::operator+ (Resistance a, Resistance b)
 
Resistance roo_quantity::operator- (Resistance a, Resistance b)
 
Resistance roo_quantity::operator- (Resistance a)
 
Resistance roo_quantity::operator* (Resistance a, float b)
 
Resistance roo_quantity::operator* (float a, Resistance b)
 
Resistance roo_quantity::operator/ (Resistance a, float b)
 
float roo_quantity::operator/ (Resistance a, Resistance b)
 
Voltage roo_quantity::operator* (Resistance a, Current b)
 Vs Ohm's law.
 
Voltage roo_quantity::operator* (Current a, Resistance b)
 
Resistance roo_quantity::operator/ (Voltage a, Current b)
 
Current roo_quantity::operator/ (Voltage a, Resistance b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Resistance &val)