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

Namespaces

namespace  roo_quantity
 For convenience conversion from roo_time::Duration.
 

Functions

Power roo_quantity::PowerInWatts (float power)
 Returns a power object equivalent to the specified power expressed in Watts.
 
Power roo_quantity::UnknownPower ()
 Returns a power object representing an unknown power.
 
Power roo_quantity::PowerInGigaWatts (float power)
 Returns a power object equivalent to the specified power expressed in gigaWatts.
 
Power roo_quantity::PowerInMegaWatts (float power)
 Returns a power object equivalent to the specified power expressed in megaWatts.
 
Power roo_quantity::PowerInKiloWatts (float power)
 Returns a power object equivalent to the specified power expressed in kiloWatts.
 
Power roo_quantity::PowerInMilliWatts (float power)
 Returns a power object equivalent to the specified power expressed in milliWatts.
 
Power roo_quantity::PowerInMicroWatts (float power)
 Returns a power object equivalent to the specified power expressed in microWatts.
 
Power roo_quantity::operator+ (Power a, Power b)
 
Power roo_quantity::operator- (Power a, Power b)
 
Power roo_quantity::operator- (Power a)
 
Power roo_quantity::operator* (Power a, float b)
 
Power roo_quantity::operator* (float a, Power b)
 
Power roo_quantity::operator/ (Power a, float b)
 
float roo_quantity::operator/ (Power a, Power b)
 
Work roo_quantity::operator* (Power a, Time b)
 Power vs work.
 
Work roo_quantity::operator* (Time a, Power b)
 
Power roo_quantity::operator/ (Work w, Time b)
 
Time roo_quantity::operator/ (Work w, Power b)
 
roo_logging::Stream & roo_quantity::operator<< (roo_logging::Stream &os, const Power &val)