Main Page | Class Hierarchy | Class List | Directories | File List | Class Members

FXCurveData Class Reference

FXCurve data. More...

#include <FXCurve.h>

List of all members.

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.


Detailed Description

FXCurve data.

Definition at line 34 of file FXCurve.h.


Member Enumeration Documentation

enum FXCurveData::DataType
 

Possible type of data.

Enumerator:
SharedData  Underlying vector should not be deleted.
SharedDelete  Underlying vector should be deleted.
CopyData  Underlying vector should be copyed and deleted.

Definition at line 52 of file FXCurve.h.


Constructor & Destructor Documentation

FXCurveData::FXCurveData double *  data,
FXint  len,
DataType  type = CopyData
[inline]
 

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.

Definition at line 64 of file FXCurve.h.

References del, and setData().


Member Function Documentation

void FXCurveData::setData double *  data,
FXint  len,
DataType  type
[inline]
 

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().


The documentation for this class was generated from the following file:
Generated on Tue Jan 31 10:55:30 2006 for FXPlot by  doxygen 1.4.4