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

Method nullifyReversePointer

src/utilities/idf/WorkspaceObject.cpp:1019–1025  ·  view source on GitHub ↗

Pre-condition: Object sourceHandle points to this object from field index. Post-condition: That information is removed from this object's m_targetData (in preparation for a change to the source pointer).

Source from the content-addressed store, hash-verified

1017 // Post-condition: That information is removed from this object's m_targetData (in preparation for
1018 // a change to the source pointer).
1019 void WorkspaceObject_Impl::nullifyReversePointer(const Handle& sourceHandle, unsigned index) {
1020 OS_ASSERT(!m_handle.isNull());
1021 OS_ASSERT(m_targetData);
1022 auto it = m_targetData->reversePointers.find(ReversePointer(sourceHandle, index));
1023 OS_ASSERT(it != m_targetData->reversePointers.end());
1024 m_targetData->reversePointers.erase(it);
1025 }
1026
1027 // Pre-condition: ReversePointer(sourceHandle,index) is not in m_targetData.
1028 // Post-condition: m_targetData indicates that object sourceHandle points to this object from

Callers 1

nullifyPointerMethod · 0.80

Calls 5

ReversePointerFunction · 0.85
isNullMethod · 0.80
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected