1 |
bearsoft |
1.1 |
#ifndef __StringLinkedList_H__
|
2 |
|
|
#define __StringLinkedList_H__
|
3 |
|
|
|
4 |
|
|
#include "../Element/StringElement.h"
|
5 |
|
|
#include "../String/String.h"
|
6 |
|
|
|
7 |
|
|
class StringLinkedList
|
8 |
|
|
{
|
9 |
|
|
|
10 |
|
|
public:
|
11 |
|
|
|
12 |
|
|
StringLinkedList();
|
13 |
|
|
~StringLinkedList();
|
14 |
|
|
|
15 |
|
|
StringElement *first;
|
16 |
|
|
StringElement *last;
|
17 |
|
|
|
18 |
|
|
void removeAllElement();
|
19 |
|
|
void addLast(String *iString);
|
20 |
|
|
void addLast(String &iString);
|
21 |
|
|
void addLast(char *iBuffer);
|
22 |
|
|
void addLastMain(char *iBuffer, int length);
|
23 |
|
|
char *getElement(int index);
|
24 |
|
|
int size();
|
25 |
|
|
bool removeElement(int index);
|
26 |
|
|
void setElement( char *iBuffer, int iLength, int index);
|
27 |
|
|
void sortLargestOrder();
|
28 |
|
|
void sortSmallestOrder();
|
29 |
|
|
int stringLength;
|
30 |
|
|
|
31 |
|
|
private:
|
32 |
|
|
int howfar;
|
33 |
|
|
|
34 |
|
|
};
|
35 |
|
|
|
36 |
|
|
#endif
|