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

Method indexInOrder

src/utilities/idf/ObjectOrderBase.cpp:184–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184OptionalUnsigned ObjectOrderBase::indexInOrder(const IddObjectType& type) const {
185 if (m_orderByIddEnum) {
186 return static_cast<unsigned>(type.value());
187 }
188 if (m_iddOrder) {
189 auto it = getIterator(type);
190 return (unsigned)(it - m_iddOrder->begin());
191 }
192 return boost::none;
193}
194
195// PRIVATE
196

Callers 5

addAndInsertObjectsMethod · 0.45
swapMethod · 0.45
savedWorkspaceObjectMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

beginMethod · 0.80
valueMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36