ParMooN
 All Classes Functions Variables Friends Pages
Iterator.h
1 // =======================================================================
2 // @(#)Iterator.h 1.2 02/08/99
3 //
4 // Class: TIterator
5 // Purpose: iterator to produce a series of cells which lye
6 // exactly on a special level
7 //
8 // Author: Volker Behns 04.08.97
9 //
10 // =======================================================================
11 
12 #ifndef __ITERATOR__
13 #define __ITERATOR__
14 
15 #define MAX_ItLevel 50
16 #define N_ITERATORS 9
17 
18 enum Iterators {It_EQ, It_LE, It_Finest, It_EQLevel, It_LELevel,
19  It_Between, It_OCAF, It_Mortar1, It_Mortar2};
20 
21 #include <Domain.h>
22 
25 class TIterator
26 {
27  protected:
29  int Level;
30 
37 
38  public:
39  // Constructors
40 
41  // Methods
43  int SetParam(TDomain *domain);
44 
46  virtual TBaseCell *Next(int &info) = 0;
48  virtual TBaseCell *Prev() = 0;
49 
51  virtual int Init(int level) = 0;
52 
54  virtual int GetMaxLevel() = 0;
55 };
56 
57 #endif
virtual TBaseCell * Prev()=0
int Level
Definition: Iterator.h:29
contains the boundary description, the virtual cell tree and macro grid
Definition: Domain.h:36
int N_RootCells
Definition: Iterator.h:36
int SetParam(TDomain *domain)
Definition: Iterator.C:17
TDomain * Domain
Definition: Iterator.h:32
virtual int GetMaxLevel()=0
virtual TBaseCell * Next(int &info)=0
TBaseCell ** CellTree
Definition: Iterator.h:34
information for finite element data structure
Definition: BaseCell.h:25
virtual int Init(int level)=0
Definition: Iterator.h:25