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

Function vtkSessionGetAllDependencies

Serialization/Manager/vtkSession.cxx:214–221  ·  view source on GitHub ↗

-------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

212
213 //-------------------------------------------------------------------------------
214 uint32_t* vtkSessionGetAllDependencies(vtkSession session, vtkObjectHandle object, size_t* length)
215 {
216 auto idsVtkArray = session->Manager->GetAllDependenciesAsVTKDataArray(object);
217 *length = static_cast<size_t>(idsVtkArray->GetNumberOfValues());
218 // release the ownership of the array and return the pointer to the caller.
219 idsVtkArray->SetArrayFreeFunction(nullptr);
220 return idsVtkArray->GetPointer(0);
221 }
222
223 //-------------------------------------------------------------------------------
224 void vtkSessionFreeGetAllDependenciesResult(vtkSession vtkNotUsed(session), uint32_t* ptr)

Callers 1

GetAllDependenciesMethod · 0.85

Calls 4

GetNumberOfValuesMethod · 0.45
SetArrayFreeFunctionMethod · 0.45
GetPointerMethod · 0.45

Tested by

no test coverage detected