### IMMAudioCDContents::Cursor

  The IMMAudioCDContents::Cursor class creates and manages the cursor support of the table of contents. You can use a cursor to traverse through the list of tracks.

### IMMAudioCDContents::Cursor - Member Functions and Data by Group

### Constructors & Destructor

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

~Cursor

      public:
      virtual ~Cursor()

Supported Platforms

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

Cursor

  Creates an IMMAudioCDContents::Cursor.

  Overload 1

      public:
      Cursor()

  This function creates an invalid cursor object. You have to set this cursor object equal to a valid cursor in order to use it.

Supported Platforms

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

  Overload 2

      public:
      Cursor(const Cursor& cursor)

  This function is the copy constructor. It takes another cursor and sets this cursor to be the same as the passed in cursor.

Supported Platforms

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

  Overload 3

      public:
      Cursor(const IMMAudioCDContents& contents)

  This function creates a cursor on the passed in table of contents.

Supported Platforms

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

operator =

      public:
      Cursor& operator =(const Cursor& newCursor)

  Sets this cursor to be the same as the passed in cursor.

Supported Platforms

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

### Cursor Validation and Cursor Movement

Use these members to change the cursor position in the list and to check the validity of the current position.

asIndex

      public:
      unsigned long asIndex() const

  Returns the current index.

Supported Platforms

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

invalidate

      public:
      virtual Cursor& invalidate()

  Flags this cursor as invalid.

Supported Platforms

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

isValid

      public:
      bool isValid() const

  Returns true if the cursor is valid.

Supported Platforms

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

operator ++

      public:
      virtual Cursor& operator ++()

  Points to the next item in the table of contents. If no more items exist, this invalidates the cursor.

Supported Platforms

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

operator --

      public:
      virtual Cursor& operator --()

  Points to the previous item in the table of contents. If no previous items exist, this invalidates the cursor.

Supported Platforms

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

setToFirst

      public:
      virtual Cursor& setToFirst()

  Points to the table of contents item and validates the cursor.

Supported Platforms

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

setToIndex

      public:
      virtual Cursor& setToIndex(unsigned long toIndex)

  Points to the item with the given 1-based index and validates the cursor.

Supported Platforms

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

setToLast

      public:
      virtual Cursor& setToLast()

  Points to the last table of contents item and validates the cursor.

Supported Platforms

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

setToNext

      public:
      virtual Cursor& setToNext()

  Points to the next item in the table of contents. If no more items exist, this invalidates the cursor.

Supported Platforms

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

setToPrevious

      public:
      virtual Cursor& setToPrevious()

  Points to the previous item in the table of contents. If no previous items exist, this invalidates the cursor.

Supported Platforms

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

### IMMAudioCDContents::Cursor - Inherited Member Functions and Data

#### Inherited Public Functions

  - None

#### Inherited Public Data

  - None

#### Inherited Protected Functions

  - None

#### Inherited Protected Data

  - None