VTK
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 =========================================================================*/
23 #ifndef vtkInformationExecutivePortVectorKey_h
24 #define vtkInformationExecutivePortVectorKey_h
25 
26 #include "vtkCommonExecutionModelModule.h" // For export macro
27 #include "vtkInformationKey.h"
28 
29 #include "vtkFilteringInformationKeyManager.h" // Manage instances of this type.
30 
31 class vtkExecutive;
32 
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
39  vtkInformationExecutivePortVectorKey(const char* name, const char* location);
41 
43 
47  static vtkInformationExecutivePortVectorKey* MakeKey(const char* name, const char* location)
48  {
49  return new vtkInformationExecutivePortVectorKey(name, location);
50  }
52 
54 
56  void Append(vtkInformation* info, vtkExecutive* executive, int port);
57  void Remove(vtkInformation* info, vtkExecutive* executive, int port);
58  void Set(vtkInformation* info, vtkExecutive** executives, int* ports, int length);
59  vtkExecutive** GetExecutives(vtkInformation* info);
60  int* GetPorts(vtkInformation* info);
61  void Get(vtkInformation* info, vtkExecutive** executives, int* ports);
62  int Length(vtkInformation* info);
64 
68  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
69 
71  virtual void Remove(vtkInformation* info);
72 
74  virtual void Report(vtkInformation* info, vtkGarbageCollector* collector);
75 
77  virtual void Print(ostream& os, vtkInformation* info);
78 
79 protected:
80 
82 
85  vtkExecutive** GetExecutivesWatchAddress(vtkInformation* info);
86  int* GetPortsWatchAddress(vtkInformation* info);
88 
89 private:
91  void operator=(const vtkInformationExecutivePortVectorKey&); // Not implemented.
92 };
93 
94 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
virtual void Report(vtkInformation *info, vtkGarbageCollector *collector)
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Store vtkAlgorithm input/output information.
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:51
void PrintSelf(ostream &os, vtkIndent indent)
Detect and break reference loops.
void Print(vtkInformation *info)
Superclass for vtkInformation keys.
virtual void Remove(vtkInformation *info)
static vtkInformationExecutivePortVectorKey * MakeKey(const char *name, const char *location)
a simple class to control print indentation
Definition: vtkIndent.h:38
Key for vtkExecutive/Port value pair vectors.