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

Method UnFactorElements

IO/XMLParser/vtkXMLUtilities.cxx:634–662  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

632
633//------------------------------------------------------------------------------
634void vtkXMLUtilities::UnFactorElements(vtkXMLDataElement* tree)
635{
636 if (!tree)
637 {
638 return;
639 }
640
641 // Search for the factored pool, if not found, we are done
642
643 vtkXMLDataElement* pool = tree->FindNestedElementWithName(VTK_XML_UTILITIES_FACTORED_POOL_NAME);
644 if (!pool)
645 {
646 return;
647 }
648
649 // Remove the pool from the tree, because it makes no sense
650 // unfactoring it too
651
652 pool->Register(tree);
653 tree->RemoveNestedElement(pool);
654
655 // Unfactor the tree
656
657 vtkXMLUtilities::UnFactorElementsInternal(tree, pool);
658
659 // Remove the useless empty pool
660
661 pool->UnRegister(tree);
662}
663
664//------------------------------------------------------------------------------
665int vtkXMLUtilities::UnFactorElementsInternal(vtkXMLDataElement* tree, vtkXMLDataElement* pool)

Callers

nothing calls this directly

Calls 4

RemoveNestedElementMethod · 0.80
RegisterMethod · 0.45
UnRegisterMethod · 0.45

Tested by

no test coverage detected