Physical Quantities  v1.0.0
C++ library of physical quantities, physical models, and units of measure for scientific computing. https://github.com/acodcha/phq
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | List of all members
PhQ::Time< NumericType > Class Template Reference

Time. Can represent either a point in time, a time duration, or a period. For the inverse of time, see PhQ::Frequency. More...

#include "Time.hpp"

Public Member Functions

 Time ()=default
 Default constructor. Constructs a time quantity with an uninitialized value. More...
 
 Time (const NumericType value, const Unit::Time unit)
 Constructor. Constructs a time quantity with a given value expressed in a given time unit. More...
 
constexpr Time (const PhQ::Frequency< NumericType > &frequency)
 Constructor. Constructs a time quantity from a given frequency using the definition of frequency. More...
 
constexpr Time (const Speed< NumericType > &speed, const ScalarAcceleration< NumericType > &scalar_acceleration)
 Constructor. Constructs a time quantity from a given speed and scalar acceleration using the definition of acceleration. More...
 
constexpr Time (const AngularSpeed< NumericType > &angular_speed, const ScalarAngularAcceleration< NumericType > &scalar_angular_acceleration)
 Constructor. Constructs a time quantity from a given angular speed and scalar angular acceleration using the definition of angular acceleration. More...
 
constexpr Time (const Angle< NumericType > &angle, const AngularSpeed< NumericType > &angular_speed)
 Constructor. Constructs a time quantity from a given angle and angular speed using the definition of angular speed. More...
 
constexpr Time (const ElectricCharge< NumericType > &electric_charge, const ElectricCurrent< NumericType > &electric_current)
 Constructor. Constructs a time quantity from a given electric charge and electric current using the definition of electric current. More...
 
constexpr Time (const Mass< NumericType > &mass, const MassRate< NumericType > &mass_rate)
 Constructor. Constructs a time quantity from a given mass and mass rate using the definition of mass rate. More...
 
constexpr Time (const Memory< NumericType > &memory, const MemoryRate< NumericType > &memory_rate)
 Constructor. Constructs a time quantity from a given memory and memory rate using the definition of memory rate. More...
 
constexpr Time (const Energy< NumericType > &energy, const Power< NumericType > &power)
 Constructor. Constructs a time quantity from a given energy and power using the definition of power. More...
 
constexpr Time (const SpecificEnergy< NumericType > &specific_energy, const SpecificPower< NumericType > &specific_power)
 Constructor. Constructs a time quantity from a given specific energy and specific power using the definition of specific power. More...
 
constexpr Time (const Length< NumericType > &length, const Speed< NumericType > &speed)
 Constructor. Constructs a time quantity from a given length and speed using the definition of speed. More...
 
constexpr Time (const Volume< NumericType > &volume, const VolumeRate< NumericType > &volume_rate)
 Constructor. Constructs a time quantity from a given volume and volume rate using the definition of volume rate. More...
 
 ~Time () noexcept=default
 Destructor. Destroys this time quantity. More...
 
constexpr Time (const Time< NumericType > &other)=default
 Copy constructor. Constructs a time quantity by copying another one. More...
 
template<typename OtherNumericType >
constexpr Time (const Time< OtherNumericType > &other)
 Copy constructor. Constructs a time quantity by copying another one. More...
 
constexpr Time (Time< NumericType > &&other) noexcept=default
 Move constructor. Constructs a time quantity by moving another one. More...
 
constexpr Time< NumericType > & operator= (const Time< NumericType > &other)=default
 Copy assignment operator. Assigns this time quantity by copying another one. More...
 
template<typename OtherNumericType >
constexpr Time< NumericType > & operator= (const Time< OtherNumericType > &other)
 Copy assignment operator. Assigns this time quantity by copying another one. More...
 
constexpr Time< NumericType > & operator= (Time< NumericType > &&other) noexcept=default
 Move assignment operator. Assigns this time quantity by moving another one. More...
 
constexpr PhQ::Frequency< NumericType > Frequency () const
 
constexpr Time< NumericType > operator+ (const Time< NumericType > &time) const
 
constexpr Time< NumericType > operator- (const Time< NumericType > &time) const
 
constexpr Time< NumericType > operator* (const NumericType number) const
 
constexpr NumericType operator* (const PhQ::Frequency< NumericType > &frequency) const noexcept
 
constexpr PlanarVelocity< NumericType > operator* (const PlanarAcceleration< NumericType > &planar_acceleration) const
 
constexpr Angle< NumericType > operator* (const AngularSpeed< NumericType > &angular_speed) const
 
constexpr AngularSpeed< NumericType > operator* (const ScalarAngularAcceleration< NumericType > &scalar_angular_acceleration) const
 
constexpr ElectricCharge< NumericType > operator* (const ElectricCurrent< NumericType > &electric_current) const
 
constexpr Velocity< NumericType > operator* (const Acceleration< NumericType > &acceleration) const
 
constexpr Speed< NumericType > operator* (const ScalarAcceleration< NumericType > &scalar_acceleration) const
 
constexpr Mass< NumericType > operator* (const MassRate< NumericType > &mass_rate) const
 
constexpr Energy< NumericType > operator* (const Power< NumericType > &power) const
 
constexpr SpecificEnergy< NumericType > operator* (const SpecificPower< NumericType > &specific_power) const
 
constexpr Strain< NumericType > operator* (const StrainRate< NumericType > &strain_rate) const
 
constexpr ScalarStrain< NumericType > operator* (const ScalarStrainRate< NumericType > &scalar_strain_rate) const
 
constexpr PlanarDisplacement< NumericType > operator* (const PlanarVelocity< NumericType > &planar_velocity) const
 
constexpr Displacement< NumericType > operator* (const Velocity< NumericType > &velocity) const
 
constexpr DisplacementGradient< NumericType > operator* (const VelocityGradient< NumericType > &velocity_gradient) const
 
constexpr ScalarDisplacementGradient< NumericType > operator* (const ScalarVelocityGradient< NumericType > &scalar_velocity_gradient) const
 
constexpr Volume< NumericType > operator* (const VolumeRate< NumericType > &volume_rate) const
 
constexpr Time< NumericType > operator/ (const NumericType number) const
 
constexpr NumericType operator/ (const Time< NumericType > &time) const noexcept
 
constexpr void operator+= (const Time< NumericType > &time) noexcept
 
constexpr void operator-= (const Time< NumericType > &time) noexcept
 
constexpr void operator*= (const NumericType number) noexcept
 
constexpr void operator/= (const NumericType number) noexcept
 
constexpr double Value () const noexcept
 Value of this physical quantity expressed in its standard unit of measure. More...
 
double Value (const Unit::Time unit) const
 Value of this physical quantity expressed in a given unit of measure. More...
 
constexpr double StaticValue () const
 Value of this physical quantity expressed in a given unit of measure. This method can be evaluated statically at compile-time. More...
 
constexpr double & MutableValue () noexcept
 Returns the value of this physical quantity expressed in its standard unit of measure as a mutable value. More...
 
constexpr void SetValue (const double value) noexcept
 Sets the value of this physical quantity expressed in its standard unit of measure to the given value. More...
 
std::string Print () const
 Prints this physical quantity as a string. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string Print (const Unit::Time unit) const
 Prints this physical quantity as a string. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string JSON () const
 Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string JSON (const Unit::Time unit) const
 Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string XML () const
 Serializes this physical quantity as an XML message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string XML (const Unit::Time unit) const
 Serializes this physical quantity as an XML message. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string YAML () const
 Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string YAML (const Unit::Time unit) const
 Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in the given unit of measure. More...
 

Static Public Member Functions

static constexpr Time< NumericType > Zero ()
 Statically creates a time quantity of zero. More...
 
template<Unit::Time Unit>
static constexpr Time< NumericType > Create (const NumericType value)
 Statically creates a time quantity with a given value expressed in a given time unit. More...
 
static constexpr const PhQ::DimensionsDimensions ()
 Physical dimension set of this physical quantity. More...
 
static constexpr Unit::Time Unit ()
 Standard unit of measure for this physical quantity. This physical quantity's value is stored internally in this unit of measure. More...
 

Protected Attributes

double value
 Value of this physical quantity expressed in its standard unit of measure. More...
 

Private Member Functions

constexpr Time (const NumericType value)
 Constructor. Constructs a time quantity with a given value expressed in the standard time unit. More...
 

Detailed Description

template<typename NumericType = double>
class PhQ::Time< NumericType >

Time. Can represent either a point in time, a time duration, or a period. For the inverse of time, see PhQ::Frequency.

Definition at line 172 of file Time.hpp.

Constructor & Destructor Documentation

◆ Time() [1/17]

template<typename NumericType = double>
PhQ::Time< NumericType >::Time ( )
default

Default constructor. Constructs a time quantity with an uninitialized value.

◆ Time() [2/17]

template<typename NumericType = double>
PhQ::Time< NumericType >::Time ( const NumericType  value,
const Unit::Time< NumericType >  unit 
)
inline

Constructor. Constructs a time quantity with a given value expressed in a given time unit.

Definition at line 179 of file Time.hpp.

◆ Time() [3/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const PhQ::Frequency< NumericType > &  frequency)
explicitconstexpr

Constructor. Constructs a time quantity from a given frequency using the definition of frequency.

◆ Time() [4/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Speed< NumericType > &  speed,
const ScalarAcceleration< NumericType > &  scalar_acceleration 
)
constexpr

Constructor. Constructs a time quantity from a given speed and scalar acceleration using the definition of acceleration.

◆ Time() [5/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const AngularSpeed< NumericType > &  angular_speed,
const ScalarAngularAcceleration< NumericType > &  scalar_angular_acceleration 
)
constexpr

Constructor. Constructs a time quantity from a given angular speed and scalar angular acceleration using the definition of angular acceleration.

◆ Time() [6/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Angle< NumericType > &  angle,
const AngularSpeed< NumericType > &  angular_speed 
)
constexpr

Constructor. Constructs a time quantity from a given angle and angular speed using the definition of angular speed.

◆ Time() [7/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const ElectricCharge< NumericType > &  electric_charge,
const ElectricCurrent< NumericType > &  electric_current 
)
constexpr

Constructor. Constructs a time quantity from a given electric charge and electric current using the definition of electric current.

◆ Time() [8/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Mass< NumericType > &  mass,
const MassRate< NumericType > &  mass_rate 
)
constexpr

Constructor. Constructs a time quantity from a given mass and mass rate using the definition of mass rate.

◆ Time() [9/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Memory< NumericType > &  memory,
const MemoryRate< NumericType > &  memory_rate 
)
constexpr

Constructor. Constructs a time quantity from a given memory and memory rate using the definition of memory rate.

◆ Time() [10/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Energy< NumericType > &  energy,
const Power< NumericType > &  power 
)
constexpr

Constructor. Constructs a time quantity from a given energy and power using the definition of power.

◆ Time() [11/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const SpecificEnergy< NumericType > &  specific_energy,
const SpecificPower< NumericType > &  specific_power 
)
constexpr

Constructor. Constructs a time quantity from a given specific energy and specific power using the definition of specific power.

◆ Time() [12/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Length< NumericType > &  length,
const Speed< NumericType > &  speed 
)
constexpr

Constructor. Constructs a time quantity from a given length and speed using the definition of speed.

◆ Time() [13/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Volume< NumericType > &  volume,
const VolumeRate< NumericType > &  volume_rate 
)
constexpr

Constructor. Constructs a time quantity from a given volume and volume rate using the definition of volume rate.

◆ ~Time()

template<typename NumericType = double>
PhQ::Time< NumericType >::~Time ( )
defaultnoexcept

Destructor. Destroys this time quantity.

◆ Time() [14/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const Time< NumericType > &  other)
constexprdefault

Copy constructor. Constructs a time quantity by copying another one.

◆ Time() [15/17]

template<typename NumericType = double>
template<typename OtherNumericType >
constexpr PhQ::Time< NumericType >::Time ( const Time< OtherNumericType > &  other)
inlineexplicitconstexpr

Copy constructor. Constructs a time quantity by copying another one.

Definition at line 238 of file Time.hpp.

◆ Time() [16/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( Time< NumericType > &&  other)
constexprdefaultnoexcept

Move constructor. Constructs a time quantity by moving another one.

◆ Time() [17/17]

template<typename NumericType = double>
constexpr PhQ::Time< NumericType >::Time ( const NumericType  value)
inlineexplicitconstexprprivate

Constructor. Constructs a time quantity with a given value expressed in the standard time unit.

Definition at line 352 of file Time.hpp.

Member Function Documentation

◆ Create()

template<typename NumericType = double>
template<Unit::Time Unit>
static constexpr Time<NumericType> PhQ::Time< NumericType >::Create ( const NumericType  value)
inlinestaticconstexpr

Statically creates a time quantity with a given value expressed in a given time unit.

Definition at line 264 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ Dimensions()

static constexpr const PhQ::Dimensions& PhQ::DimensionalScalar< Unit::Time , double >::Dimensions ( )
inlinestaticconstexprinherited

Physical dimension set of this physical quantity.

Definition at line 54 of file DimensionalScalar.hpp.

◆ Frequency()

template<typename NumericType = double>
constexpr PhQ::Frequency<NumericType> PhQ::Time< NumericType >::Frequency ( ) const
constexpr

◆ JSON() [1/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::JSON ( ) const
inlineinherited

Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 107 of file DimensionalScalar.hpp.

◆ JSON() [2/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::JSON ( const Unit::Time  unit) const
inlineinherited

Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 117 of file DimensionalScalar.hpp.

◆ MutableValue()

constexpr double & PhQ::DimensionalScalar< Unit::Time , double >::MutableValue ( )
inlineconstexprnoexceptinherited

Returns the value of this physical quantity expressed in its standard unit of measure as a mutable value.

Definition at line 83 of file DimensionalScalar.hpp.

◆ operator*() [1/18]

template<typename NumericType = double>
constexpr Velocity<NumericType> PhQ::Time< NumericType >::operator* ( const Acceleration< NumericType > &  acceleration) const
constexpr

◆ operator*() [2/18]

template<typename NumericType = double>
constexpr Angle<NumericType> PhQ::Time< NumericType >::operator* ( const AngularSpeed< NumericType > &  angular_speed) const
constexpr

◆ operator*() [3/18]

template<typename NumericType = double>
constexpr ElectricCharge<NumericType> PhQ::Time< NumericType >::operator* ( const ElectricCurrent< NumericType > &  electric_current) const
constexpr

◆ operator*() [4/18]

template<typename NumericType = double>
constexpr Mass<NumericType> PhQ::Time< NumericType >::operator* ( const MassRate< NumericType > &  mass_rate) const
constexpr

◆ operator*() [5/18]

template<typename NumericType = double>
constexpr Time<NumericType> PhQ::Time< NumericType >::operator* ( const NumericType  number) const
inlineconstexpr

Definition at line 278 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator*() [6/18]

template<typename NumericType = double>
constexpr NumericType PhQ::Time< NumericType >::operator* ( const PhQ::Frequency< NumericType > &  frequency) const
constexprnoexcept

◆ operator*() [7/18]

template<typename NumericType = double>
constexpr PlanarVelocity<NumericType> PhQ::Time< NumericType >::operator* ( const PlanarAcceleration< NumericType > &  planar_acceleration) const
constexpr

◆ operator*() [8/18]

template<typename NumericType = double>
constexpr PlanarDisplacement<NumericType> PhQ::Time< NumericType >::operator* ( const PlanarVelocity< NumericType > &  planar_velocity) const
constexpr

◆ operator*() [9/18]

template<typename NumericType = double>
constexpr Energy<NumericType> PhQ::Time< NumericType >::operator* ( const Power< NumericType > &  power) const
constexpr

◆ operator*() [10/18]

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Time< NumericType >::operator* ( const ScalarAcceleration< NumericType > &  scalar_acceleration) const
constexpr

◆ operator*() [11/18]

template<typename NumericType = double>
constexpr AngularSpeed<NumericType> PhQ::Time< NumericType >::operator* ( const ScalarAngularAcceleration< NumericType > &  scalar_angular_acceleration) const
constexpr

◆ operator*() [12/18]

template<typename NumericType = double>
constexpr ScalarStrain<NumericType> PhQ::Time< NumericType >::operator* ( const ScalarStrainRate< NumericType > &  scalar_strain_rate) const
constexpr

◆ operator*() [13/18]

template<typename NumericType = double>
constexpr ScalarDisplacementGradient<NumericType> PhQ::Time< NumericType >::operator* ( const ScalarVelocityGradient< NumericType > &  scalar_velocity_gradient) const
constexpr

◆ operator*() [14/18]

template<typename NumericType = double>
constexpr SpecificEnergy<NumericType> PhQ::Time< NumericType >::operator* ( const SpecificPower< NumericType > &  specific_power) const
constexpr

◆ operator*() [15/18]

template<typename NumericType = double>
constexpr Strain<NumericType> PhQ::Time< NumericType >::operator* ( const StrainRate< NumericType > &  strain_rate) const
constexpr

◆ operator*() [16/18]

template<typename NumericType = double>
constexpr Displacement<NumericType> PhQ::Time< NumericType >::operator* ( const Velocity< NumericType > &  velocity) const
constexpr

◆ operator*() [17/18]

template<typename NumericType = double>
constexpr DisplacementGradient<NumericType> PhQ::Time< NumericType >::operator* ( const VelocityGradient< NumericType > &  velocity_gradient) const
constexpr

◆ operator*() [18/18]

template<typename NumericType = double>
constexpr Volume<NumericType> PhQ::Time< NumericType >::operator* ( const VolumeRate< NumericType > &  volume_rate) const
constexpr

◆ operator*=()

template<typename NumericType = double>
constexpr void PhQ::Time< NumericType >::operator*= ( const NumericType  number)
inlineconstexprnoexcept

Definition at line 341 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator+()

template<typename NumericType = double>
constexpr Time<NumericType> PhQ::Time< NumericType >::operator+ ( const Time< NumericType > &  time) const
inlineconstexpr

◆ operator+=()

template<typename NumericType = double>
constexpr void PhQ::Time< NumericType >::operator+= ( const Time< NumericType > &  time)
inlineconstexprnoexcept

Definition at line 333 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator-()

template<typename NumericType = double>
constexpr Time<NumericType> PhQ::Time< NumericType >::operator- ( const Time< NumericType > &  time) const
inlineconstexpr

◆ operator-=()

template<typename NumericType = double>
constexpr void PhQ::Time< NumericType >::operator-= ( const Time< NumericType > &  time)
inlineconstexprnoexcept

Definition at line 337 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator/() [1/2]

template<typename NumericType = double>
constexpr Time<NumericType> PhQ::Time< NumericType >::operator/ ( const NumericType  number) const
inlineconstexpr

Definition at line 325 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator/() [2/2]

template<typename NumericType = double>
constexpr NumericType PhQ::Time< NumericType >::operator/ ( const Time< NumericType > &  time) const
inlineconstexprnoexcept

Definition at line 329 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator/=()

template<typename NumericType = double>
constexpr void PhQ::Time< NumericType >::operator/= ( const NumericType  number)
inlineconstexprnoexcept

Definition at line 345 of file Time.hpp.

References PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator=() [1/3]

template<typename NumericType = double>
constexpr Time<NumericType>& PhQ::Time< NumericType >::operator= ( const Time< NumericType > &  other)
constexprdefault

Copy assignment operator. Assigns this time quantity by copying another one.

◆ operator=() [2/3]

template<typename NumericType = double>
template<typename OtherNumericType >
constexpr Time<NumericType>& PhQ::Time< NumericType >::operator= ( const Time< OtherNumericType > &  other)
inlineconstexpr

Copy assignment operator. Assigns this time quantity by copying another one.

Definition at line 249 of file Time.hpp.

References PhQ::DimensionalScalar< UnitType, NumericType >::Value(), and PhQ::DimensionalScalar< Unit::Time, double >::value.

◆ operator=() [3/3]

template<typename NumericType = double>
constexpr Time<NumericType>& PhQ::Time< NumericType >::operator= ( Time< NumericType > &&  other)
constexprdefaultnoexcept

Move assignment operator. Assigns this time quantity by moving another one.

◆ Print() [1/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::Print ( ) const
inlineinherited

Prints this physical quantity as a string. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 95 of file DimensionalScalar.hpp.

◆ Print() [2/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::Print ( const Unit::Time  unit) const
inlineinherited

Prints this physical quantity as a string. This physical quantity's value is expressed in the given unit of measure.

Definition at line 101 of file DimensionalScalar.hpp.

◆ SetValue()

constexpr void PhQ::DimensionalScalar< Unit::Time , double >::SetValue ( const double  value)
inlineconstexprnoexceptinherited

Sets the value of this physical quantity expressed in its standard unit of measure to the given value.

Definition at line 89 of file DimensionalScalar.hpp.

◆ StaticValue()

constexpr double PhQ::DimensionalScalar< Unit::Time , double >::StaticValue ( ) const
inlineconstexprinherited

Value of this physical quantity expressed in a given unit of measure. This method can be evaluated statically at compile-time.

Definition at line 77 of file DimensionalScalar.hpp.

◆ Unit()

static constexpr Unit::Time PhQ::DimensionalScalar< Unit::Time , double >::Unit ( )
inlinestaticconstexprinherited

Standard unit of measure for this physical quantity. This physical quantity's value is stored internally in this unit of measure.

Definition at line 60 of file DimensionalScalar.hpp.

◆ Value() [1/2]

constexpr double PhQ::DimensionalScalar< Unit::Time , double >::Value ( ) const
inlineconstexprnoexceptinherited

Value of this physical quantity expressed in its standard unit of measure.

Definition at line 65 of file DimensionalScalar.hpp.

◆ Value() [2/2]

double PhQ::DimensionalScalar< Unit::Time , double >::Value ( const Unit::Time  unit) const
inlineinherited

Value of this physical quantity expressed in a given unit of measure.

Definition at line 70 of file DimensionalScalar.hpp.

◆ XML() [1/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::XML ( ) const
inlineinherited

Serializes this physical quantity as an XML message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 127 of file DimensionalScalar.hpp.

◆ XML() [2/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::XML ( const Unit::Time  unit) const
inlineinherited

Serializes this physical quantity as an XML message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 137 of file DimensionalScalar.hpp.

◆ YAML() [1/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::YAML ( ) const
inlineinherited

Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 147 of file DimensionalScalar.hpp.

◆ YAML() [2/2]

std::string PhQ::DimensionalScalar< Unit::Time , double >::YAML ( const Unit::Time  unit) const
inlineinherited

Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 157 of file DimensionalScalar.hpp.

◆ Zero()

template<typename NumericType = double>
static constexpr Time<NumericType> PhQ::Time< NumericType >::Zero ( )
inlinestaticconstexpr

Statically creates a time quantity of zero.

Definition at line 258 of file Time.hpp.

Member Data Documentation

◆ value

double PhQ::DimensionalScalar< Unit::Time , double >::value
protectedinherited

Value of this physical quantity expressed in its standard unit of measure.

Definition at line 221 of file DimensionalScalar.hpp.


The documentation for this class was generated from the following files: