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

Function get_input_pair_index

src/DataStructures.cpp:585–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585input_pairs get_input_pair_index(const std::string& input_pair_name) {
586 auto& coolprop_information = get_input_pair_information();
587 auto it = coolprop_information.index_map.find(input_pair_name);
588 if (it != coolprop_information.index_map.end()) {
589 return it->second;
590 }
591 throw ValueError(format("Your input name [%s] is not valid in get_input_pair_index (names are case sensitive)", input_pair_name.c_str()));
592}
593
594const std::string& get_input_pair_short_desc(input_pairs pair) {
595 auto& coolprop_information = get_input_pair_information();

Callers 4

mainFunction · 0.85
mainFunction · 0.85
cp_update_stateFunction · 0.85

Calls 1

formatFunction · 0.70

Tested by

no test coverage detected