ChartDirector 6.0 (C++ Edition)

IntArray


The IntArray class represents arrays of integers. It encapsulates a pointer to a C array and the size of the array in a single object as follows:

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


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