1 |
bearsoft |
1.1 |
#ifndef __FloatArray_H__
|
2 |
|
|
#define __FloatArray_H__
|
3 |
|
|
|
4 |
|
|
class FloatArray
|
5 |
|
|
{
|
6 |
|
|
|
7 |
|
|
public:
|
8 |
|
|
|
9 |
|
|
FloatArray();
|
10 |
|
|
FloatArray(int iSize);
|
11 |
|
|
~FloatArray();
|
12 |
|
|
|
13 |
|
|
void sortLargestOrder();
|
14 |
|
|
void sortSmallestOrder();
|
15 |
|
|
void setFloat(float value,int index);
|
16 |
|
|
float getFloat(int index);
|
17 |
|
|
void addLast(float value);
|
18 |
|
|
void removeFloat(int index);
|
19 |
|
|
float getFloat();
|
20 |
|
|
void setFloat(float value);
|
21 |
|
|
void internIndexForward();
|
22 |
|
|
void resetInternIndex();
|
23 |
|
|
int getInternIndex();
|
24 |
|
|
void clearBuffer(float clearValue);
|
25 |
|
|
|
26 |
|
|
float *buffer;
|
27 |
|
|
int size;
|
28 |
|
|
int internIndex;
|
29 |
|
|
|
30 |
|
|
};
|
31 |
|
|
|
32 |
|
|
#endif
|