VTK  9.0.1
vtkOverrideInformationCollection.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkOverrideInformationCollection.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkOverrideInformationCollection_h
26 #define vtkOverrideInformationCollection_h
27 
28 #include "vtkCollection.h"
29 #include "vtkCommonCoreModule.h" // For export macro
30 
31 #include "vtkOverrideInformation.h" // Needed for inline methods
32 
33 class VTKCOMMONCORE_EXPORT vtkOverrideInformationCollection : public vtkCollection
34 {
35 public:
38 
43 
47  vtkOverrideInformation* GetNextItem();
48 
54  {
55  return static_cast<vtkOverrideInformation*>(this->GetNextItemAsObject(cookie));
56  }
57 
58 protected:
61 
62 private:
63  // hide the standard AddItem from the user and the compiler.
64  void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
65 
66 private:
68  void operator=(const vtkOverrideInformationCollection&) = delete;
69 };
70 
72 {
73  this->vtkCollection::AddItem(f);
74 }
75 
77 {
78  return static_cast<vtkOverrideInformation*>(this->GetNextItemAsObject());
79 }
80 
81 #endif
82 // VTK-HeaderTest-Exclude: vtkOverrideInformationCollection.h
create and manipulate ordered lists of objects
Definition: vtkCollection.h:53
void AddItem(vtkObject *)
Add an object to the bottom of the list.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
abstract base class for most VTK objects
Definition: vtkObject.h:63
maintain a list of override information objects
vtkOverrideInformation * GetNextItem()
Get the next OverrideInformation in the list.
static vtkOverrideInformationCollection * New()
vtkOverrideInformation * GetNextOverrideInformation(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
void AddItem(vtkOverrideInformation *)
Add a OverrideInformation to the list.
Factory object override information.
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:48