VTK  9.1.0
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
33class VTKCOMMONCORE_EXPORT vtkOverrideInformationCollection : public vtkCollection
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
44
48 vtkOverrideInformation* GetNextItem();
49
55 {
56 return static_cast<vtkOverrideInformation*>(this->GetNextItemAsObject(cookie));
57 }
58
59protected:
62
63private:
64 // hide the standard AddItem from the user and the compiler.
65 void AddItem(vtkObject* o) { this->vtkCollection::AddItem(o); }
66
67private:
69 void operator=(const vtkOverrideInformationCollection&) = delete;
70};
71
73{
75}
76
78{
79 return static_cast<vtkOverrideInformation*>(this->GetNextItemAsObject());
80}
81
82#endif
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.
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract base class for most VTK objects
Definition: vtkObject.h:73
maintain a list of override information objects
vtkOverrideInformation * GetNextItem()
Get the next OverrideInformation in the list.
~vtkOverrideInformationCollection() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkOverrideInformation * GetNextOverrideInformation(vtkCollectionSimpleIterator &cookie)
Reentrant safe way to get an object in a collection.
void AddItem(vtkOverrideInformation *)
Add a OverrideInformation to the list.
static vtkOverrideInformationCollection * New()
Factory object override information.
void * vtkCollectionSimpleIterator
Definition: vtkCollection.h:48