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 =========================================================================*/
25 #ifndef vtkOverrideInformationCollection_h
26 #define vtkOverrideInformationCollection_h
27 
28 #include "vtkCommonCoreModule.h" // For export macro
29 #include "vtkCollection.h"
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 
55  return static_cast<vtkOverrideInformation *>(
56  this->GetNextItemAsObject(cookie));};
57 
58 protected:
61 
62 
63 private:
64  // hide the standard AddItem from the user and the compiler.
65  void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
66 
67 private:
69  void operator=(const vtkOverrideInformationCollection&) VTK_DELETE_FUNCTION;
70 };
71 
73 {
74  this->vtkCollection::AddItem(f);
75 }
76 
78 {
79  return static_cast<vtkOverrideInformation *>(this->GetNextItemAsObject());
80 }
81 
82 #endif
83 // VTK-HeaderTest-Exclude: vtkOverrideInformationCollection.h
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:44
maintain a list of override information objects
abstract base class for most VTK objects
Definition: vtkObject.h:53
static vtkCollection * New()
Construct with empty list.
vtkOverrideInformation * GetNextItem()
Get the next OverrideInformation in the list.
void AddItem(vtkObject *)
Add an object to the bottom of the list.
create and manipulate ordered lists of objects
Definition: vtkCollection.h:48
Factory object override information.
vtkObject * GetNextItemAsObject()
Get the next item in the collection.
vtkOverrideInformation * GetNextOverrideInformation(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
void AddItem(vtkOverrideInformation *)
Add a OverrideInformation to the list.