VTK  9.7.1
vtkDirectedAcyclicGraph.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
33 #ifndef vtkDirectedAcyclicGraph_h
34 #define vtkDirectedAcyclicGraph_h
35 
36 #include "vtkCommonDataModelModule.h" // For export macro
37 #include "vtkDirectedGraph.h"
38 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
39 
40 VTK_ABI_NAMESPACE_BEGIN
41 class vtkIdTypeArray;
42 
43 class VTKCOMMONDATAMODEL_EXPORT VTK_MARSHALAUTO vtkDirectedAcyclicGraph : public vtkDirectedGraph
44 {
45 public:
46  static vtkDirectedAcyclicGraph* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
53  int GetDataObjectType() VTK_FUTURE_CONST override { return VTK_DIRECTED_ACYCLIC_GRAPH; }
54 
56 
62 
63 protected:
65  ~vtkDirectedAcyclicGraph() override;
66 
71  bool IsStructureValid(vtkGraph* g) override;
72 
73 private:
75  void operator=(const vtkDirectedAcyclicGraph&) = delete;
76 };
77 
78 VTK_ABI_NAMESPACE_END
79 #endif
int GetDataObjectType() VTK_FUTURE_CONST override
Return what type of dataset this is.
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
dynamic, self-adjusting array of vtkIdType
A directed graph.
Base class for graph data types.
Definition: vtkGraph.h:282
bool IsStructureValid(vtkGraph *g) override
Check the storage, and accept it if it is a valid undirected graph.
a simple class to control print indentation
Definition: vtkIndent.h:28
static vtkDirectedGraph * New()
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
A rooted tree data structure.
static vtkDirectedGraph * GetData(vtkInformation *info)
Retrieve a graph from an information vector.