Microsoft Windows CE 3.0  

CGenericList Class

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

CGenericListis a template class that allows for a type-specific implementation of a list. It is derived from CBaseListand uses that class's typeless implementation. The constructor creates a CBaseListobject, and all CGenericListmember functions call CBaseListmember functions but provide type-checking dependent on the template.

Member Functions

AddAfter Inserts a node or list of nodes after the specified node.
AddBefore Inserts a node or list of nodes before the specified node.
AddHead Inserts a node or list of nodes at the front of the list.
AddTail Appends a node or list of nodes to the end of the list.
CGenericList Constructs a CGenericListobject.
Find Returns the first position that contains the specified object.
Get Returns the object at the specified position.
GetCount Returns the number of objects (object count) in the list.
GetHead Returns the object at the head of the list.
GetHeadPosition Returns a cursor identifying the first element of the list.
GetNext Returns the specified object and update position.
GetTailPosition Returns a cursor identifying the last element of the list.
Remove Removes the specified node from the list.
RemoveHead Removes the first node in the list.
RemoveTail Removes the last node in the list.