VTK
vtkPOrderStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkPOrderStatistics.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 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2011 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19  -------------------------------------------------------------------------*/
42 #ifndef __vtkPOrderStatistics_h
43 #define __vtkPOrderStatistics_h
44 
45 #include "vtkOrderStatistics.h"
46 
47 //BTX
48 #include <map> // STL Header
49 //ETX
50 
51 class vtkIdTypeArray;
54 
56 {
57  public:
58  static vtkPOrderStatistics* New();
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
63 
65  virtual void SetController(vtkMultiProcessController*);
66  vtkGetObjectMacro(Controller, vtkMultiProcessController);
68 
70 
71  virtual void Learn( vtkTable*,
72  vtkTable*,
75 
76  protected:
79 
80 //BTX
82 
84  bool Reduce( vtkIdTypeArray*,
85  vtkDataArray* );
87 
89 
91  bool Reduce( vtkIdTypeArray*,
92  vtkIdType&,
93  char*,
94  std::map<vtkStdString,vtkIdType>& );
96 
98 
100  bool Broadcast( std::map<vtkStdString,vtkIdType>&,
103  vtkIdType );
104 //ETX
106 
108  private:
109  vtkPOrderStatistics(const vtkPOrderStatistics&); // Not implemented.
110  void operator=(const vtkPOrderStatistics&); // Not implemented.
111 };
112 
113 #endif