VTK  9.2.6
vtkInformationExecutivePortVectorKey.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkInformationExecutivePortVectorKey.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=========================================================================*/
24#ifndef vtkInformationExecutivePortVectorKey_h
25#define vtkInformationExecutivePortVectorKey_h
26
27#include "vtkCommonExecutionModelModule.h" // For export macro
28#include "vtkInformationKey.h"
29
30#include "vtkFilteringInformationKeyManager.h" // Manage instances of this type.
31
32class vtkExecutive;
33
34class VTKCOMMONEXECUTIONMODEL_EXPORT vtkInformationExecutivePortVectorKey : public vtkInformationKey
35{
36public:
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
40 vtkInformationExecutivePortVectorKey(const char* name, const char* location);
42
49 const char* name, const char* location)
50 {
51 return new vtkInformationExecutivePortVectorKey(name, location);
52 }
53
55
59 void Append(vtkInformation* info, vtkExecutive* executive, int port);
60 void Remove(vtkInformation* info, vtkExecutive* executive, int port);
61 void Set(vtkInformation* info, vtkExecutive** executives, int* ports, int length);
64 void Get(vtkInformation* info, vtkExecutive** executives, int* ports);
67
73 void ShallowCopy(vtkInformation* from, vtkInformation* to) override;
74
78 void Remove(vtkInformation* info) override;
79
83 void Report(vtkInformation* info, vtkGarbageCollector* collector) override;
84
88 void Print(ostream& os, vtkInformation* info) override;
89
90protected:
92
100
101private:
103 void operator=(const vtkInformationExecutivePortVectorKey&) = delete;
104};
105
106#endif
Superclass for all pipeline executives in VTK.
Detect and break reference loops.
a simple class to control print indentation
Definition vtkIndent.h:34
Key for vtkExecutive/Port value pair vectors.
void Remove(vtkInformation *info, vtkExecutive *executive, int port)
Get/Set the value associated with this key in the given information object.
void Get(vtkInformation *info, vtkExecutive **executives, int *ports)
Get/Set the value associated with this key in the given information object.
int Length(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
vtkExecutive ** GetExecutives(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
void ShallowCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Append(vtkInformation *info, vtkExecutive *executive, int port)
Get/Set the value associated with this key in the given information object.
int * GetPorts(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
void Print(ostream &os, vtkInformation *info) override
Print the key's value in an information object to a stream.
void Set(vtkInformation *info, vtkExecutive **executives, int *ports, int length)
Get/Set the value associated with this key in the given information object.
void Remove(vtkInformation *info) override
Remove this key from the given information object.
void Report(vtkInformation *info, vtkGarbageCollector *collector) override
Report a reference this key has in the given information object.
vtkExecutive ** GetExecutivesWatchAddress(vtkInformation *info)
Get the address at which the actual value is stored.
int * GetPortsWatchAddress(vtkInformation *info)
Get the address at which the actual value is stored.
vtkInformationExecutivePortVectorKey(const char *name, const char *location)
static vtkInformationExecutivePortVectorKey * MakeKey(const char *name, const char *location)
This method simply returns a new vtkInformationExecutivePortVectorKey, given a name and a location.
Superclass for vtkInformation keys.
Store vtkAlgorithm input/output information.
#define VTK_NEWINSTANCE