vtkSessionIterator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkSessionIterator.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
22 #ifndef vtkSessionIterator_h
23 #define vtkSessionIterator_h
24 
25 #include "vtkObject.h"
26 #include "vtkRemotingCoreModule.h" //needed for exports
27 
28 class vtkSession;
29 
31 {
32 public:
33  static vtkSessionIterator* New();
34  vtkTypeMacro(vtkSessionIterator, vtkObject);
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
40  virtual void InitTraversal();
41 
45  virtual void GoToNextItem();
46 
53  virtual bool IsDoneWithTraversal();
54 
58  vtkSession* GetCurrentSession();
59 
63  vtkIdType GetCurrentSessionId();
64 
65 protected:
67  ~vtkSessionIterator() override;
68 
69  class vtkInternals;
70  vtkInternals* Internals;
71 
72 private:
73  vtkSessionIterator(const vtkSessionIterator&) = delete;
74  void operator=(const vtkSessionIterator&) = delete;
75 };
76 
77 #endif
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
int vtkIdType
vtkSessionIterator is used to iterate over sessions in the global ProcessModule.
#define VTKREMOTINGCORE_EXPORT
vtkInternals * Internals
vtkSession defines a session i.e.
Definition: vtkSession.h:29
static vtkObject * New()
void operator=(const vtkObjectBase &)