22 lines
288 B
C++
22 lines
288 B
C++
#pragma once
|
|
#include "Map.h"
|
|
class MapIterator
|
|
{
|
|
//DO NOT CHANGE THIS PART
|
|
friend class Map;
|
|
private:
|
|
const Map& map;
|
|
//TODO - Representation
|
|
int _current;
|
|
int _first;
|
|
|
|
MapIterator(const Map& m);
|
|
public:
|
|
void first();
|
|
void next();
|
|
TElem getCurrent();
|
|
bool valid() const;
|
|
};
|
|
|
|
|