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

Method InputPairInformation

src/DataStructures.cpp:567–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565 std::map<input_pairs, std::string> short_desc_map, long_desc_map;
566 std::map<std::string, input_pairs> index_map;
567 InputPairInformation() {
568 const input_pair_info* const end = input_pair_list + sizeof(input_pair_list) / sizeof(input_pair_list[0]);
569 for (const input_pair_info* el = input_pair_list; el != end; ++el) {
570 short_desc_map.emplace(el->key, el->short_desc);
571 long_desc_map.emplace(el->key, el->long_desc);
572 index_map.emplace(el->short_desc, el->key);
573 }
574 }
575};
576
577std::unique_ptr<InputPairInformation> input_pair_information_p;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected