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

Method removeRegularGrid

ThirdParty/xdmf3/vtkxdmf3/XdmfGridTemplate.cpp:618–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618void
619XdmfGridTemplate::removeRegularGrid(const unsigned int index)
620{
621 if (mBase) {
622 if (index < getNumberSteps()) {
623 if (shared_ptr<XdmfRegularGrid> grid =
624 shared_dynamic_cast<XdmfRegularGrid>(mBase)) {
625 this->removeStep(index);
626 }
627 }
628 }
629 else {
630 XdmfError::message(XdmfError::FATAL, "Error: Attempting to get RegularGrid from template without a base");
631 }
632}
633
634void
635XdmfGridTemplate::removeRegularGrid(const std::string & Name)

Callers 5

copyGridMethod · 0.80
readMethod · 0.80
releaseMethod · 0.80

Calls 1

removeStepMethod · 0.95

Tested by

no test coverage detected