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

Method removeAllIndependentVariables

src/model/TableLookup.cpp:274–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 }
273
274 void TableLookup_Impl::removeAllIndependentVariables() {
275 auto modelObjectList = independentVariableList();
276 if (modelObjectList) {
277 auto const modelObjects = modelObjectList->modelObjects();
278
279 for (const auto& elem : modelObjects) {
280 auto const modelObject = elem.optionalCast<TableIndependentVariable>();
281 if (modelObject) {
282 modelObjectList->removeModelObject(elem);
283 }
284 }
285 }
286 }
287
288 std::vector<TableIndependentVariable> TableLookup_Impl::independentVariables() const {
289 std::vector<TableIndependentVariable> result;

Callers 1

TEST_FFunction · 0.80

Calls 2

removeModelObjectMethod · 0.80
modelObjectsMethod · 0.45

Tested by 1

TEST_FFunction · 0.64