MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / PhaseInformation

Method PhaseInformation

src/DataStructures.cpp:383–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381 std::map<phases, std::string> short_desc_map, long_desc_map;
382 std::map<std::string, phases> index_map;
383 PhaseInformation() {
384 const phase_info* const end = phase_info_list + sizeof(phase_info_list) / sizeof(phase_info_list[0]);
385 for (const phase_info* el = phase_info_list; el != end; ++el) {
386 short_desc_map.emplace(el->key, el->short_desc);
387 long_desc_map.emplace(el->key, el->long_desc);
388 index_map.emplace(el->short_desc, el->key);
389 }
390 }
391};
392
393std::unique_ptr<PhaseInformation> phase_information_p;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected