VTK  9.4.20241118
vtkInformationExecutivePortKey.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
12#ifndef vtkInformationExecutivePortKey_h
13#define vtkInformationExecutivePortKey_h
14
15#include "vtkCommonExecutionModelModule.h" // For export macro
16#include "vtkInformationKey.h"
17
18#include "vtkFilteringInformationKeyManager.h" // Manage instances of this type.
19
20VTK_ABI_NAMESPACE_BEGIN
21class vtkExecutive;
22
23class VTKCOMMONEXECUTIONMODEL_EXPORT vtkInformationExecutivePortKey : public vtkInformationKey
24{
25public:
27 void PrintSelf(ostream& os, vtkIndent indent) override;
28
29 vtkInformationExecutivePortKey(const char* name, const char* location);
31
38 const char* name, const char* location)
39 {
40 return new vtkInformationExecutivePortKey(name, location);
41 }
42
44
48 void Set(vtkInformation* info, vtkExecutive*, int);
51 void Get(vtkInformation* info, vtkExecutive*& executive, int& port);
53
59 void ShallowCopy(vtkInformation* from, vtkInformation* to) override;
60
64 void Report(vtkInformation* info, vtkGarbageCollector* collector) override;
65
69 void Print(ostream& os, vtkInformation* info) override;
70
71private:
73 void operator=(const vtkInformationExecutivePortKey&) = delete;
74};
75
76VTK_ABI_NAMESPACE_END
77#endif
Superclass for all pipeline executives in VTK.
Detect and break reference loops.
a simple class to control print indentation
Definition vtkIndent.h:108
Key for vtkExecutive/Port value pairs.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void Get(vtkInformation *info, vtkExecutive *&executive, int &port)
Get/Set the value associated with this key in the given information object.
vtkInformationExecutivePortKey(const char *name, const char *location)
void ShallowCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
void Set(vtkInformation *info, vtkExecutive *, int)
Get/Set the value associated with this key in the given information object.
vtkExecutive * GetExecutive(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
static vtkInformationExecutivePortKey * MakeKey(const char *name, const char *location)
This method simply returns a new vtkInformationExecutivePortKey, given a name and a location.
void Print(ostream &os, vtkInformation *info) override
Print the key's value in an information object to a stream.
int GetPort(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
void Report(vtkInformation *info, vtkGarbageCollector *collector) override
Report a reference this key has in the given information object.
~vtkInformationExecutivePortKey() override
Superclass for vtkInformation keys.
Store vtkAlgorithm input/output information.
#define VTK_NEWINSTANCE