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

Method getObjectByNameAndReference

src/utilities/idf/Workspace.cpp:412–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410 }
411
412 boost::optional<WorkspaceObject> Workspace_Impl::getObjectByNameAndReference(const std::string& name,
413 const std::vector<std::string>& referenceNames) const {
414 for (const WorkspaceObject& object : getObjectsByReference(referenceNames)) {
415 OptionalString candidate = object.name();
416 if (candidate && istringEqual(*candidate, name)) {
417 return object;
418 }
419 }
420 return boost::none;
421 }
422
423 bool Workspace_Impl::fastNaming() const {
424 return m_fastNaming;

Callers 1

initializeOnAddMethod · 0.80

Calls 2

istringEqualFunction · 0.85
nameMethod · 0.45

Tested by

no test coverage detected