-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIterator.cpp
More file actions
45 lines (35 loc) · 614 Bytes
/
Copy pathIterator.cpp
File metadata and controls
45 lines (35 loc) · 614 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include "Iterator.h"
vector<Page> Memory::buffer;
Row::Row ()
{
// TRACE (true);
} // Row::Row
Row::~Row ()
{
TRACE (true);
} // Row::~Row
Plan::Plan (char const * const name)
: _name (name)
{
TRACE (true);
} // Plan::Plan
Plan::~Plan ()
{
TRACE (true);
} // Plan::~Plan
Iterator::Iterator () : _rows (0)
{
TRACE (true);
} // Iterator::Iterator
Iterator::~Iterator ()
{
TRACE (true);
} // Iterator::~Iterator
void Iterator::run ()
{
TRACE (true);
for (Row row; next (row); free (row))
++ _rows;
traceprintf ("entire plan produced %lu rows\n",
(unsigned long) _rows);
} // Iterator::run