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

Method targets

src/utilities/idf/WorkspaceObject.cpp:239–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237 }
238
239 std::vector<WorkspaceObject> WorkspaceObject_Impl::targets() const {
240 WorkspaceObjectVector result;
241 if (!initialized()) {
242 return result;
243 }
244 if (m_sourceData) {
245 for (const ForwardPointer& ptr : m_sourceData->pointers) {
246 if (!ptr.targetHandle.isNull()) {
247 OptionalWorkspaceObject owo = this->workspace().getObject(ptr.targetHandle);
248 OS_ASSERT(owo);
249 result.push_back(*owo);
250 }
251 }
252 }
253 return result;
254 }
255
256 std::vector<unsigned> WorkspaceObject_Impl::getSourceIndices(const Handle& targetHandle) const {
257 UnsignedVector result;

Callers 4

TEST_FFunction · 0.80
addAndInsertObjectsMethod · 0.80
addObjectsMethod · 0.80
TEST_FFunction · 0.80

Calls 4

workspaceMethod · 0.95
isNullMethod · 0.80
getObjectMethod · 0.45
push_backMethod · 0.45

Tested by 2

TEST_FFunction · 0.64
TEST_FFunction · 0.64