MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / removeConnectClause

Method removeConnectClause

src/modelica/ModelicaFileImpl.cpp:434–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432}
433
434bool ClassDefinitionImpl::removeConnectClause(const std::string& source, const std::string& target) {
435 auto normalized = validateAndNormalizeConnectClause(source, target);
436 const std::string connectionId = ConnectClauseImpl::connectionIdFromEndpoints(normalized.first, normalized.second);
437
438 ensureConnectionCache();
439 auto it = m_connections.find(connectionId);
440 if (it == m_connections.end() || !it->second->isActive()) {
441 return false;
442 }
443
444 removeConnectClause(it->second.get());
445 return true;
446}
447
448void ClassDefinitionImpl::ensureConnectionCache() {
449 if (!m_connectionsDirty) {

Callers 1

removeMethod · 0.45

Calls 9

isActiveMethod · 0.80
equationContextMethod · 0.80
findMethod · 0.45
endMethod · 0.45
getMethod · 0.45
getTextMethod · 0.45
sizeMethod · 0.45
eraseMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected