ChartDirector 7.1 (C++ Edition)

DoubleArray


The DoubleArray class represents arrays of double precision numbers. It encapsulates a pointer to a C array and the size of the array in a single object as follows:

class DoubleArray { public : int len; const double *data; DoubleArray() : data(0), len(0) {} DoubleArray(const double *data, int len) : data(data), len(len) {} double operator[](int i) const { return data[i]; } };


MethodInheritedDescription
DoubleArray(Self)The constructor of the DoubleArray class.