-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTList.h
34 lines (31 loc) · 895 Bytes
/
TList.h
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
#ifndef TLIST_H_INCLUDED
#define TLIST_H_INCLUDED
#include "TTie.h"
template <typename T> class TList{
private:
///Atributos da classe
TList<T>* List;
TTie<T>* head;
TTie<T>* tail;
int Size;
public:
///contrutores da classe
TList();
TList(TTie<T>* _head, TTie<T>* _tail);
///getters da classe
TTie<T>* getHead();
TTie<T>* getTail();
int getSize();
///setters da classe
void setHead(TTie<T>* newHead);
void setTail(TTie<T>* newTail);
void updateSize(int newSize);
///metodos da classe
///insere no começo da lista
void setBegin(T &_info);
///remove do começo da lista
void removeBegin();
///imprime os valores da lista
void printList();
};
#endif // TLIST_H_INCLUDED