Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
CStringList methods implement ways to add, remove, find, move, and count CString objects in a double-linked list that is contained by CStringList.
CObject Members is a list of methods from CObject, the base class for CStringList.
Note
The methods of CStringList resemble the methods of class CObList.
Construction
Constructs an empty list for CString objects. |
Head/Tail Access
Returns the head element of the list (cannot be empty). |
|
Returns the tail element of the list (cannot be empty). |
Operations
Adds an element (or all the elements in another list) to the head of the list (makes a new head). |
|
Adds an element (or all the elements in another list) to the tail of the list (makes a new tail). |
|
Removes all the elements from this list. |
|
Removes the element from the head of the list. |
|
Removes the element from the tail of the list. |
Iteration
Returns the position of the head element of the list. |
|
Gets the next element for iterating. |
|
Gets the previous element for iterating. |
|
Returns the position of the tail element of the list. |
Retrieval/Modification
Gets the element at a given position. |
|
Removes an element from this list as specified by position. |
|
Sets the element at a given position. |
Insertion
Inserts a new element after a given position. |
|
Inserts a new element before a given position. |
Searching
Gets the position of an element specified by string value. |
|
Gets the position of an element specified by a zero-based index. |
Status
Returns the number of elements in this list. |
|
Returns the number of elements in this list. |
|
Tests for the empty list condition (no elements). |
See Also
Reference
Other Resources
Change History
Date |
History |
Reason |
---|---|---|
October 2009 |
Added a link to the CString topic. |
Customer feedback. |