LoAdSG
RectangularIterator.h
1
//
2
// Created by to35jepo on 4/11/23.
3
//
4
#include "../indices/index.h"
5
#ifndef SGRUN_RECTANGULARITERATOR_H
6
#define SGRUN_RECTANGULARITERATOR_H
7
13
class
RectangularIterator
{
14
public
:
15
RectangularIterator
(IndexDimension &A_, IndexDimension &B_);
16
25
RectangularIterator
(IndexDimension &A_, IndexDimension &B_, Depth T);
26
27
IndexDimension getIndex() {
return
P; }
28
29
bool
goon() {
return
weiter; }
30
31
void
begin(){
32
P=A;
33
weiter =
true
;}
34
35
void
operator++();
36
37
void
nextnext();
38
43
void
operator2
(
int
dim);
44
45
protected
:
46
IndexDimension A;
47
IndexDimension B;
48
int
level[DimensionSparseGrid];
49
IndexDimension P;
50
bool
weiter;
51
52
};
53
54
class
RectangularIteratorExact:
public
RectangularIterator
{
55
56
57
public
:
58
RectangularIteratorExact(IndexDimension &A_, IndexDimension &B_, Depth T);
59
void
operator++();
60
61
62
63
};
64
#endif
//SGRUN_RECTANGULARITERATOR_H
RectangularIterator
Definition
RectangularIterator.h:13
RectangularIterator::operator2
void operator2(int dim)
Definition
RectangularIterator.cpp:66
home
runner
work
LoAdSG
LoAdSG
library
source
iterator
RectangularIterator.h
Generated by
1.9.8