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

Method SetPartition

Common/DataModel/vtkPartitionedDataSetCollection.cxx:94–104  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

92
93//------------------------------------------------------------------------------
94void vtkPartitionedDataSetCollection::SetPartition(
95 unsigned int idx, unsigned int partition, vtkDataObject* object)
96{
97 if (this->GetNumberOfPartitionedDataSets() <= idx)
98 {
99 this->SetNumberOfPartitionedDataSets(idx + 1);
100 }
101 auto ptd = this->GetPartitionedDataSet(idx);
102 assert(ptd != nullptr);
103 ptd->SetPartition(partition, object);
104}
105
106//------------------------------------------------------------------------------
107vtkDataSet* vtkPartitionedDataSetCollection::GetPartition(unsigned int idx, unsigned int partition)

Callers

nothing calls this directly

Calls 4

GetPartitionedDataSetMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected