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

Method removeKeyVarGroup

src/model/MeterCustom.cpp:88–98  ·  view source on GitHub ↗

Remove the (Key, Var) group at given index

Source from the content-addressed store, hash-verified

86
87 // Remove the (Key, Var) group at given index
88 bool MeterCustom_Impl::removeKeyVarGroup(unsigned groupIndex) {
89 bool ok = false;
90 unsigned numberofDataPairs = numExtensibleGroups();
91 // Only delete if the index is smaller than the number of groups
92 if (groupIndex < numberofDataPairs) {
93 getObject<ModelObject>().eraseExtensibleGroup(groupIndex);
94 ok = true;
95 }
96
97 return ok;
98 }
99
100 // Remove all the (Key, Var) groups
101 void MeterCustom_Impl::removeAllKeyVarGroups() {

Callers 2

TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 1

eraseExtensibleGroupMethod · 0.80

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36