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 "vtkInformationKey.h"
27 
28 #include "vtkFilteringInformationKeyManager.h" // Manage instances of this type.
29 
30 class vtkExecutive;
31 
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent);
37 
38  vtkInformationExecutivePortVectorKey(const char* name, const char* location);
40 
42 
44  void Append(vtkInformation* info, vtkExecutive* executive, int port);
45  void Remove(vtkInformation* info, vtkExecutive* executive, int port);
46  void Set(vtkInformation* info, vtkExecutive** executives, int* ports, int length);
47  vtkExecutive** GetExecutives(vtkInformation* info);
48  int* GetPorts(vtkInformation* info);
49  void Get(vtkInformation* info, vtkExecutive** executives, int* ports);
50  int Length(vtkInformation* info);
52 
56  virtual void ShallowCopy(vtkInformation* from, vtkInformation* to);
57 
59  virtual void Remove(vtkInformation* info);
60 
62  virtual void Report(vtkInformation* info, vtkGarbageCollector* collector);
63 
65  virtual void Print(ostream& os, vtkInformation* info);
66 
67 protected:
68 
70 
73  vtkExecutive** GetExecutivesWatchAddress(vtkInformation* info);
74  int* GetPortsWatchAddress(vtkInformation* info);
76 
77 private:
79  void operator=(const vtkInformationExecutivePortVectorKey&); // Not implemented.
80 };
81 
82 #endif