TBTK
|
Need a break? Support the development by playing Polarity Puzzles |
#include <Base.h>
Public Types | |
using | IsBaseQuantity = std::true_type |
Public Types inherited from TBTK::Quantity::Quantity< Units, Exponents > | |
using | Unit = Units |
using | Exponent = Exponents |
Friends | |
void | initializeBaseQuantities () |
Related Functions | |
(Note that these are not member functions.) | |
typedef Base< AngleUnit, AngleExponent > | Angle |
typedef Base< ChargeUnit, ChargeExponent > | Charge |
typedef Base< CountUnit, CountExponent > | Count |
typedef Base< EnergyUnit, EnergyExponent > | Energy |
typedef Base< LengthUnit, LengthExponent > | Length |
typedef Base< TemperatureUnit, TemperatureExponent > | Temperature |
typedef Base< TimeUnit, TimeExponent > | Time |
Additional Inherited Members | |
Public Member Functions inherited from TBTK::Quantity::Quantity< Units, Exponents > | |
Quantity () | |
Quantity (double value) | |
Public Member Functions inherited from TBTK::Real | |
Real () | |
constexpr | Real (double value) |
Real (const std::string &serialization, Serializable::Mode mode) | |
constexpr | operator double () const |
Real & | operator= (double rhs) |
Real & | operator+= (const Real &rhs) |
Real & | operator-= (const Real &rhs) |
Real & | operator*= (const Real &rhs) |
Real & | operator/= (const Real &rhs) |
std::string | serialize (Serializable::Mode mode) const |
Static Public Member Functions inherited from TBTK::Quantity::Quantity< Units, Exponents > | |
static std::string | getUnitString (Unit unit) |
static Unit | getUnit (const std::string &unit) |
static double | getConversionFactor (Unit unit) |
Static Protected Attributes inherited from TBTK::Quantity::Quantity< Units, Exponents > | |
static class TBTK::Quantity::Quantity::ConversionTable | conversionTable |
The Base Quantity is a Quantity with the compile time directive IsBaseQuantity set to std::true_type to differentiate it from Derived Quantities. The Base Quantity is instantiated by the seven Base Quantities Angle, Charge, Count, Energy, Length, Temperature, and Time. For more information, see Quantity and the individual typedefs below.
The Quantity::Angle is a Quantity::Base with the following predefined base units
|
related |
The Quantity::Charge is a Quantity::Base with the following predefined base units
The Quantity::Count is a Quantity::Base with the following predefined base units
|
related |
The Quantity::Energy is a Quantity::Base with the following predefined base units
|
friend |
Initialize the Base Quantities.
|
related |
The Quantity::Length is a Quantity::Base with the following predefined base units
|
related |
The Quantity::Temperature is a Quantity::Base with the following predefined base units
The Quantity::Time is a Quantity::Base with the following predefined base units