wrench::UnitParser::unit_scale

class unit_scale : public std::unordered_map<std::string, double>

A helper nested class to facilitate unit conversion (Essentially Cut-And-Pasted from simgrid/src/surf/xml/surfxml_sax_cb.cpp)

Public Functions

explicit unit_scale(std::initializer_list<std::tuple<const std::string, double, int, bool>> generators)

Constructor.

Parameters

generators – generators