#include <FXCurve.h>
Public Types | |
enum | DataType { SharedData = 0, SharedDelete, CopyData } |
Possible type of data. More... | |
Public Member Functions | |
FXCurveData (double *data, FXint len, DataType type=CopyData) | |
Constructor. | |
void | clear () |
Clears the data. | |
void | setData (double *data, FXint len, DataType type) |
Sets the data. | |
virtual | ~FXCurveData () |
Destructor. | |
const double & | at (FXint i) const |
Element i. | |
double & | at (FXint i) |
Element i. | |
FXint | length () const |
The length of the data. | |
double | getMax () const |
The maximun value of the data. | |
double | getMin () const |
The minimum value of the data. | |
Protected Attributes | |
double * | data |
The underlying data pointer. | |
FXbool | del |
Flag if data should be deleted or not. | |
FXint | len |
The data length. | |
FXdouble | max |
The maxinum value of the data. | |
FXdouble | min |
The minimum value of the data. |
Definition at line 34 of file FXCurve.h.
|
Possible type of data.
|
|
Constructor. Case type is SharedData then the given data will not be deleted, case SharedDelete data will be deleted on the destructor. If type is Copy, DataType will copy the given data and this copy will be deleted on the destructor. |
|
Sets the data. calculating max and min. Definition at line 81 of file FXCurve.h. References clear(), CopyData, del, max, min, SharedData, and SharedDelete. Referenced by FXCurveData(). |