The IPointArray class represents an array of IPoint objects.
Constructors & DestructorYou can construct, copy, and assign objects of this class.
![]() |
public:
~IPointArray()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
Use this function to construct an IPointArray object.
public:
IPointArray(const IPointArray& pointArray)
Use this function to construct an IPointArray object from an existing IPointArray object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IPointArray( unsigned long dimension = 0, const IPoint* array = 0 )
Use this function to construct an IPointArray object from two optional arguments. The first argument specifies the length of the array and the second argument is a pointer to an array of IPoint objects. The array of IPoints are used to initialize the IPointArray object. If a pointer to an array of IPoint objects is specified, it is assumed that the IPoint array has at least as many elements as the array dimension specified.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPointArray& operator =(const IPointArray& pointArray)
Use this function to assign one IPointArray object to another.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
ComparisonsUse these members to compare two point arrays.
![]() |
public:
bool operator !=(const IPointArray& pointArray) const
Returns true if the arrays are not the same length or the points are not identical or both.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
bool operator ==(const IPointArray& pointArray) const
Returns true if the arrays are the same length and have identical points.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Data AccessUse these members to access attributes of objects of this class.
![]() |
public:
IPointArray& add(const IPoint& point)
Adds a point to the end of the array.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPointArray& insert( unsigned long index, const IPoint& point )
Inserts a point before the index specified.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
Returns a reference to the point at the specified index.
public:
IPoint& operator [](unsigned long index)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
const IPoint& operator [](unsigned long index) const
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPointArray& remove(unsigned long index)
Removes a point at the specified index.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPointArray& resize(unsigned long newsize)
Increases or decreases the size of the array. New points are initialized to 0,0.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPointArray& reverse()
Reverses the elements in the array.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPointArray reversed() const
Returns a copy of the point array with its elements reversed.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
unsigned long size() const
Returns the dimension of the array.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |