VTK
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 =========================================================================*/
28 #ifndef vtkOverrideInformationCollection_h
29 #define vtkOverrideInformationCollection_h
30 
31 #include "vtkCommonCoreModule.h" // For export macro
32 #include "vtkCollection.h"
33 
34 #include "vtkOverrideInformation.h" // Needed for inline methods
35 
36 class VTKCOMMONCORE_EXPORT vtkOverrideInformationCollection : public vtkCollection
37 {
38 public:
41 
46 
50  vtkOverrideInformation *GetNextItem();
51 
58  return static_cast<vtkOverrideInformation *>(
59  this->GetNextItemAsObject(cookie));};
60 
61 protected:
64 
65 
66 private:
67  // hide the standard AddItem from the user and the compiler.
68  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
69 
70 private:
72  void operator=(const vtkOverrideInformationCollection&) = delete;
73 };
74 
76 {
77  this->vtkCollection::AddItem(f);
78 }
79 
81 {
82  return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject());
83 }
84 
85 #endif
86 // VTK-HeaderTest-Exclude: vtkOverrideInformationCollection.h
vtkOverrideInformation
Factory object override information.
Definition: vtkOverrideInformation.h:35
vtkOverrideInformationCollection
maintain a list of override information objects
Definition: vtkOverrideInformationCollection.h:36
vtkCollection::New
static vtkCollection * New()
Construct with empty list.
vtkOverrideInformationCollection::vtkOverrideInformationCollection
vtkOverrideInformationCollection()
Definition: vtkOverrideInformationCollection.h:62
vtkCollectionSimpleIterator
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:47
vtkCollection.h
vtkObject
abstract base class for most VTK objects
Definition: vtkObject.h:59
vtkOverrideInformationCollection::GetNextOverrideInformation
vtkOverrideInformation * GetNextOverrideInformation(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
Definition: vtkOverrideInformationCollection.h:56
vtkOverrideInformationCollection::~vtkOverrideInformationCollection
~vtkOverrideInformationCollection() override
Definition: vtkOverrideInformationCollection.h:63
vtkCollection::GetNextItemAsObject
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
Definition: vtkCollection.h:177
vtkCollection
create and manipulate ordered lists of objects
Definition: vtkCollection.h:51
vtkOverrideInformationCollection::AddItem
void AddItem(vtkOverrideInformation *)
Add a OverrideInformation to the list.
Definition: vtkOverrideInformationCollection.h:75
vtkOverrideInformationCollection::GetNextItem
vtkOverrideInformation * GetNextItem()
Get the next OverrideInformation in the list.
Definition: vtkOverrideInformationCollection.h:80
vtkCollection::AddItem
void AddItem(vtkObject *)
Add an object to the bottom of the list.
vtkOverrideInformation.h