VTK  9.3.1
vtkTreeBFSIterator.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
3 
22 #ifndef vtkTreeBFSIterator_h
23 #define vtkTreeBFSIterator_h
24 
25 #include "vtkCommonDataModelModule.h" // For export macro
26 #include "vtkTreeIterator.h"
27 
28 VTK_ABI_NAMESPACE_BEGIN
29 class vtkTreeBFSIteratorInternals;
30 class vtkIntArray;
31 
32 class VTKCOMMONDATAMODEL_EXPORT vtkTreeBFSIterator : public vtkTreeIterator
33 {
34 public:
35  static vtkTreeBFSIterator* New();
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39 protected:
41  ~vtkTreeBFSIterator() override;
42 
43  void Initialize() override;
44  vtkIdType NextInternal() override;
45 
46  vtkTreeBFSIteratorInternals* Internals;
48 
49  enum ColorType
50  {
53  BLACK
54  };
55 
56 private:
57  vtkTreeBFSIterator(const vtkTreeBFSIterator&) = delete;
58  void operator=(const vtkTreeBFSIterator&) = delete;
59 };
60 
61 VTK_ABI_NAMESPACE_END
62 #endif
vtkTreeBFSIteratorInternals * Internals
Abstract class for iterator over a vtkTree.
virtual vtkIdType NextInternal()=0
int vtkIdType
Definition: vtkType.h:315
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:34
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
breadth first search iterator through a vtkTree
virtual void Initialize()=0
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...