/*========================================================================= Program: Visualization Toolkit Module: vtkDataObjectTreeInternals.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ /** * @class vtkDataObjectTreeInternals * */ #ifndef vtkDataObjectTreeInternals_h #define vtkDataObjectTreeInternals_h #include "vtkDataObject.h" #include "vtkInformation.h" #include "vtkSmartPointer.h" #include //----------------------------------------------------------------------------- // Item in the VectorOfDataObjects. struct vtkDataObjectTreeItem { vtkSmartPointer DataObject; vtkSmartPointer MetaData; vtkDataObjectTreeItem(vtkDataObject* dobj = nullptr, vtkInformation* info = nullptr) { this->DataObject = dobj; this->MetaData = info; } }; //----------------------------------------------------------------------------- class vtkDataObjectTreeInternals { public: typedef std::vector VectorOfDataObjects; typedef VectorOfDataObjects::iterator Iterator; typedef VectorOfDataObjects::reverse_iterator ReverseIterator; VectorOfDataObjects Children; }; //----------------------------------------------------------------------------- class vtkDataObjectTreeIndex : public std::vector { int IsValid() { return (this->size() > 0); } }; #endif // VTK-HeaderTest-Exclude: vtkDataObjectTreeInternals.h