-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLista.h
More file actions
38 lines (30 loc) · 803 Bytes
/
Lista.h
File metadata and controls
38 lines (30 loc) · 803 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
//
// Created by tsijercic1 on 1/26/2019.
//
#ifndef CPPLIST_LISTA_H
#define CPPLIST_LISTA_H
template <typename tip>
class Lista
{
public:
Lista() {}
Lista(const Lista& l) {}
Lista(Lista&& l) {}
Lista& operator=(const Lista& l);
Lista& operator=(Lista &&l);
virtual int brojElemenata()const=0;
virtual tip trenutni()const=0;
virtual tip& trenutni()=0;
virtual bool sljedeci()=0;
virtual bool prethodni()=0;
virtual void pocetak()=0;
virtual void kraj()=0;
virtual void obrisi()=0;
virtual void dodajIspred(const tip& a)=0;
virtual void dodajIza(const tip& a)=0;
virtual const tip& operator[](int i)const=0;
virtual tip& operator[](int i)=0;
virtual void Ispisi()const=0;
virtual ~Lista() {}
};
#endif //CPPLIST_LISTA_H