VTK  9.3.20240613
vtkDataObjectTreeInternals.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
8#ifndef vtkDataObjectTreeInternals_h
9#define vtkDataObjectTreeInternals_h
10
11#include "vtkDataObject.h"
12#include "vtkInformation.h"
13#include "vtkSmartPointer.h"
14
15#include <vector>
16
17//-----------------------------------------------------------------------------
18// Item in the VectorOfDataObjects.
19VTK_ABI_NAMESPACE_BEGIN
21{
24
25 vtkDataObjectTreeItem(vtkDataObject* dobj = nullptr, vtkInformation* info = nullptr)
26 {
27 this->DataObject = dobj;
28 this->MetaData = info;
29 }
30};
31
32//-----------------------------------------------------------------------------
34{
35public:
36 typedef std::vector<vtkDataObjectTreeItem> VectorOfDataObjects;
37 typedef VectorOfDataObjects::iterator Iterator;
38 typedef VectorOfDataObjects::reverse_iterator ReverseIterator;
39
41};
42
43//-----------------------------------------------------------------------------
44class vtkDataObjectTreeIndex : public std::vector<unsigned int>
45{
46 int IsValid() { return !this->empty(); }
47};
48
49VTK_ABI_NAMESPACE_END
50#endif
51
52// VTK-HeaderTest-Exclude: vtkDataObjectTreeInternals.h
VectorOfDataObjects::reverse_iterator ReverseIterator
std::vector< vtkDataObjectTreeItem > VectorOfDataObjects
VectorOfDataObjects::iterator Iterator
general representation of visualization data
Store vtkAlgorithm input/output information.
Hold a reference to a vtkObjectBase instance.
vtkSmartPointer< vtkDataObject > DataObject
vtkDataObjectTreeItem(vtkDataObject *dobj=nullptr, vtkInformation *info=nullptr)
vtkSmartPointer< vtkInformation > MetaData