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

Method clone

src/model/PythonPluginVariable.cpp:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 ModelObject PythonPluginVariable_Impl::clone(Model model) const {
59 auto newVar = ModelObject_Impl::clone(model).cast<PythonPluginVariable>();
60
61 for (const auto& child : pythonPluginTrendVariables()) {
62 child.clone(model).cast<PythonPluginTrendVariable>().setPythonPluginVariable(newVar);
63 }
64
65 for (const auto& child : pythonPluginOutputVariables()) {
66 child.clone(model).cast<PythonPluginOutputVariable>().setPythonPluginVariable(newVar);
67 }
68
69 return std::move(newVar);
70 }
71
72 std::vector<IdfObject> PythonPluginVariable_Impl::remove() {
73 std::vector<IdfObject> result;

Callers

nothing calls this directly

Calls 2

cloneFunction · 0.50

Tested by

no test coverage detected