### 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.

~IPointArray

      public:
      ~IPointArray()

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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

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.

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

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.

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

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

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

remove

      public:
      IPointArray& remove(unsigned long index)

  Removes a point at the specified index.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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

reverse

      public:
      IPointArray& reverse()

  Reverses the elements in the array.

Supported Platforms

  Windows | OS/2 | AIX
  Yes | Yes | Yes

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

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

  - None

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None