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

Method extensibleIndex

src/utilities/idd/IddObject.cpp:245–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243 }
244
245 ExtensibleIndex IddObject_Impl::extensibleIndex(unsigned index) const {
246 if (!isExtensibleField(index)) {
247 LOG_AND_THROW("Field " << index << " is not an extensible field in IddObject " << name() << ".");
248 }
249 ExtensibleIndex result(0, 0);
250 result.field = (index - m_fields.size()) % m_properties.numExtensible;
251 result.group = (index - result.field - m_fields.size()) / m_properties.numExtensible;
252 return result;
253 }
254
255 unsigned IddObject_Impl::index(ExtensibleIndex extensibleIndex) const {
256 if (!m_properties.extensible) {

Callers 7

test_ExtensibleIndexMethod · 0.80
groupIndexMethod · 0.80
fieldCommentMethod · 0.80
pushExtensibleGroupMethod · 0.80
IdfObject.cppFile · 0.80
TEST_FFunction · 0.80

Calls 2

nameClass · 0.85
sizeMethod · 0.45

Tested by 2

test_ExtensibleIndexMethod · 0.64
TEST_FFunction · 0.64