1 |
#ifndef __IntLinkedList_H__
|
2 |
#define __IntLinkedList_H__
|
3 |
|
4 |
#include "../Element/IntElement.h"
|
5 |
|
6 |
class IntLinkedList
|
7 |
{
|
8 |
|
9 |
public:
|
10 |
|
11 |
IntLinkedList();
|
12 |
~IntLinkedList();
|
13 |
|
14 |
IntElement *first;
|
15 |
IntElement *last;
|
16 |
|
17 |
void removeAllElement();
|
18 |
void addLast(int iValue);
|
19 |
int getElement(int index);
|
20 |
int size();
|
21 |
bool removeElement(int index);
|
22 |
void setElement( int iValue, int index);
|
23 |
void sortSmallestOrder();
|
24 |
void sortLargestOrder();
|
25 |
|
26 |
|
27 |
private:
|
28 |
int howfar;
|
29 |
|
30 |
};
|
31 |
|
32 |
#endif
|