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

Function is_valid_scheme

src/DataStructures.cpp:473–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473bool is_valid_scheme(const std::string& scheme_name, schemes& iOutput) {
474 auto& scheme_information = get_scheme_information();
475 auto it = scheme_information.index_map.find(scheme_name);
476 // If equal to end, not found
477 if (it != scheme_information.index_map.end()) {
478 // Found, return it
479 iOutput = static_cast<schemes>(it->second);
480 return true;
481 } else {
482 return false;
483 }
484}
485
486schemes get_scheme_index(const std::string& scheme_name) {
487 schemes iScheme;

Callers 1

get_scheme_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected