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 =========================================================================*/
27 #ifndef vtkOverrideInformationCollection_h
28 #define vtkOverrideInformationCollection_h
29 
30 #include "vtkCommonCoreModule.h" // For export macro
31 #include "vtkCollection.h"
32 
33 #include "vtkOverrideInformation.h" // Needed for inline methods
34 
36 {
37 public:
40 
43 
45  vtkOverrideInformation *GetNextItem();
46 
47  //BTX
49 
53  return static_cast<vtkOverrideInformation *>(
54  this->GetNextItemAsObject(cookie));};
55  //ETX
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&); // Not implemented.
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:47
maintain a list of override information objects
abstract base class for most VTK objects
Definition: vtkObject.h:61
#define VTKCOMMONCORE_EXPORT
static vtkCollection * New()
void AddItem(vtkObject *)
create and manipulate unsorted lists of objects
Definition: vtkCollection.h:52
Factory object override information.
vtkObject * GetNextItemAsObject()
vtkOverrideInformation * GetNextOverrideInformation(vtkCollectionSimpleIterator &cookie)