MCPcopy Create free account
hub / github.com/Kitware/VTK / add

Method add

Wrapping/PythonCore/vtkPythonUtil.cxx:91–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void vtkPythonObjectMap::add(vtkObjectBase* key, PyObject* value)
92{
93 key->Register(nullptr);
94 iterator i = this->find(key);
95 if (i == this->end())
96 {
97 (*this)[key] = std::make_pair(value, 1);
98 }
99 else
100 {
101 i->second.first = value;
102 ++i->second.second;
103 }
104}
105
106void vtkPythonObjectMap::remove(vtkObjectBase* key)
107{

Callers 15

addDirectoryToZipFunction · 0.45
extractRequiredFieldsFunction · 0.45
webglRenderer.jsFile · 0.45
generate_pyi.pyFile · 0.45
sorted_graph_helperFunction · 0.45
module_pyiFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

RegisterMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected