Files
School/Anul 1/Semestrul 2/Data structures/Lab 3/ListIterator.h
T
2024-08-31 12:07:21 +03:00

25 lines
379 B
C++

#pragma once
#include "SortedIndexedList.h"
//DO NOT CHANGE THIS PART
class ListIterator{
friend class SortedIndexedList;
private:
const SortedIndexedList& list;
ListIterator(const SortedIndexedList& list);
//TODO - Representation
int _current;
public:
void first();
void last();
void next();
bool valid() const;
TComp getCurrent() const;
void previous();
};