Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

레밍즈프로젝트/프로토타입/STLLIST

From ZeroWiki
Revision as of 05:29, 7 February 2021 by imported>Unknown
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

참고

CList [1]
CList 사용 [2]

대략적인 CList

Construction

CList Constructs an empty ordered list.

Head/Tail Access

GetHead Returns the head element of the list (cannot be empty).
GetTail Returns the tail element of the list (cannot be empty).

Operations

RemoveHead Removes the element from the head of the list.
RemoveTail Removes the element from the tail of the list.
AddHead Adds an element (or all the elements in another list) to the head of the list (makes a new head).
AddTail Adds an element (or all the elements in another list) to the tail of the list (makes a new tail).
RemoveAll Removes all the elements from this list.

Iteration

GetHeadPosition Returns the position of the head element of the list.
GetTailPosition Returns the position of the tail element of the list.
GetNext Gets the next element for iterating.
GetPrev Gets the previous element for iterating.

Retrieval/Modification

GetAt Gets the element at a given position.
SetAt Sets the element at a given position.
RemoveAt Removes an element from this list, specified by position.

Insertion

InsertBefore Inserts a new element before a given position.
InsertAfter Inserts a new element after a given position.

Searching

Find Gets the position of an element specified by pointer value.
FindIndex Gets the position of an element specified by a zero-based index.

Status

GetCount Returns the number of elements in this list.
IsEmpty Tests for the empty list condition (no elements).