SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
serif::dimensions::runtime Namespace Reference

Classes

struct  RuntimeQuantityValue
 Runtime resolved type for a quantity value. This holds both an ID and a value. This is the runtime equivalent to a QuantityValue. Note that where these differ is that QuantityValue is built with template types. This allows the compiler to resolve it to a plain numeric type and still do optimizations That is generally not the case with RuntimeQuantityValue. More...
 
struct  RuntimeRelationDescriptor
 
class  ThermodynamicQuantityID
 Runtime resolvable ID for a thermodynamic quantity. Used in conjunction with concepts to resolve compile time thermodynamic types to runtime values. More...
 

Concepts

concept  RuntimeIdentifiedThermodynamicQuantity
 

Variables

template<RuntimeIdentifiedThermodynamicQuantity Quantity>
constexpr ThermodynamicQuantityID thermodynamicQuantityID {std::string_view{Quantity::identifier}}
 Extract a compile time identifier from a thermodynamic quantity and project it into a runtime string_view.
 

Variable Documentation

◆ thermodynamicQuantityID

template<RuntimeIdentifiedThermodynamicQuantity Quantity>
ThermodynamicQuantityID serif::dimensions::runtime::thermodynamicQuantityID {std::string_view{Quantity::identifier}}
inlineconstexpr

Extract a compile time identifier from a thermodynamic quantity and project it into a runtime string_view.

Template Parameters
QuantityType which RuntimeIdentifiedThermodynamicQuantity allows