IPointArray

The IPointArray class represents an array of IPoint objects.


IPointArray - Member Functions and Data by Group

Constructors & Destructor

You can construct, copy, and assign objects of this class.


[view class]
~IPointArray
public:
~IPointArray()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IPointArray

Use this function to construct an IPointArray object.


Overload 1
public:
IPointArray(const IPointArray& pointArray)

Use this function to construct an IPointArray object from an existing IPointArray object.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
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.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
operator =
public:
IPointArray& operator =(const IPointArray& pointArray)

Use this function to assign one IPointArray object to another.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Comparisons

Use these members to compare two point arrays.


[view class]
operator !=
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.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
operator ==
public:
bool operator ==(const IPointArray& pointArray) const

Returns true if the arrays are the same length and have identical points.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Data Access

Use these members to access attributes of objects of this class.


[view class]
add
public:
IPointArray& add(const IPoint& point)

Adds a point to the end of the array.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
insert
public:
IPointArray& insert( unsigned long index, const IPoint& point )

Inserts a point before the index specified.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
operator []

Returns a reference to the point at the specified index.


Overload 1
public:
IPoint& operator [](unsigned long index)

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Overload 2
public:
const IPoint& operator [](unsigned long index) const

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
remove
public:
IPointArray& remove(unsigned long index)

Removes a point at the specified index.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
resize
public:
IPointArray& resize(unsigned long newsize)

Increases or decreases the size of the array. New points are initialized to 0,0.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
reverse
public:
IPointArray& reverse()

Reverses the elements in the array.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
reversed
public:
IPointArray reversed() const

Returns a copy of the point array with its elements reversed.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
size
public:
unsigned long size() const

Returns the dimension of the array.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IPointArray - Inherited Member Functions and Data

Inherited Public Functions

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data