|
List Class Reference#include <ListP.h>
List of all members.
Detailed Description
ADT list - Pointer-based implementation.
Definition at line 23 of file ListP.h.
Constructor & Destructor Documentation
List::List |
( |
const List & |
aList |
) |
|
|
Member Function Documentation
bool List::isEmpty |
( |
|
) |
const |
|
int List::getLength |
( |
|
) |
const |
|
|
Locates a specified node in a linked list. - Precondition:
- index is the number of the desired node.
- Postcondition:
- None.
- Parameters:
-
| index | The index of the node to locate. |
- Returns:
- A pointer to the index-th node. If index < 1 or index > the number of nodes in the list, returns NULL.
Definition at line 70 of file ListP.cpp.
References getLength(), head, and List::ListNode::next. |
Member Data Documentation
|
Pointer to linked list of items.
Definition at line 61 of file ListP.h.
Referenced by find(), and List(). |
The documentation for this class was generated from the following files:
|