Phyth v0.1.0
A dimensional safe C++ header-only mechanics and electromagnetics simulation library.
Loading...
Searching...
No Matches
Classes | Namespaces
UnitsRegistry.hpp File Reference
#include <string>
#include <unordered_map>
#include <typeindex>
#include <mutex>
Include dependency graph for UnitsRegistry.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Phyth::UnitInfo
 Display information for a unit type. More...
 
class  Phyth::UnitRegistry
 Singleton registry for unit names and symbols. More...
 
struct  Phyth::UnitRegistrar< UnitT >
 Static registrar for unit types. More...
 

Namespaces

namespace  Phyth
 

Class Documentation

◆ Phyth::UnitInfo

struct Phyth::UnitInfo

Display information for a unit type.

Contains human-readable strings used by QuantityToString().

Definition at line 15 of file UnitsRegistry.hpp.

Class Members
string name

Full unit name, e.g., "Meter", "Kilogram"

string symbol

Unit symbol, e.g., "m", "kg", "N"