26 this->name = that.
name;
32 this->name = that.name;
54 this->owner = that.owner;
61 this->owner = that.owner;
67 owner->
print(
"iterator %d == %d", 2 - this->pos, 2 - that.pos);
68 return this->pos == that.pos;
91 int result = (2 - this->
pos) - (2 - that.pos);
97 owner->
print(
"iterator advance: %i += %i", 2 - this->pos, steps);
114 void print(
const char *msg, ...)
const {
117 printf(
"[%s] ",
name);
126#pragma omp parallel for collapse(3) num_threads(1)
127 for (
int i = 0;
i < 3; ++
i)
130 for (
int k = 0; k < 3; ++k)
131 printf(
"i=%d j=%d k=%d\n",
i, v, k);
const Iterator & operator=(const Iterator &that)
bool operator==(const Iterator &that) const
Iterator operator+(int steps) const
Iterator(const Iterator &that)
Iterator(const Reporter *owner, int pos)
size_t operator-(const Iterator &that) const
Iterator(Iterator &&that)
const Iterator & operator=(Iterator &&that)
void print(const char *msg) const
void print(const char *msg,...) const
Reporter(Reporter &&that)
const Reporter & operator=(const Reporter &that)
const Reporter & operator=(Reporter &&that)
Reporter(const char *name)
Reporter(const Reporter &that)