21 lines
313 B
C++
21 lines
313 B
C++
#pragma once
|
|
#include "SortedMap.h"
|
|
|
|
//DO NOT CHANGE THIS PART
|
|
class SMIterator{
|
|
friend class SortedMap;
|
|
private:
|
|
const SortedMap& map;
|
|
SMIterator(const SortedMap& mapionar);
|
|
|
|
//TODO - Representation
|
|
Node* current;
|
|
|
|
public:
|
|
void first();
|
|
void next();
|
|
bool valid() const;
|
|
TElem getCurrent() const;
|
|
};
|
|
|