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