Utility Library
C4List.h

class ListElement

Objects inherit from the ListElement class so that they can be stored in a list.
Definition

template <class type> class ListElement : public ListElementBase

Member Functions
ListElement::Previous Returns the previous element in a list.
ListElement::Next Returns the next element in a list.
ListElement::GetOwningList Returns the list to which an object belongs.
ListElement::Detach Removes an object from any list to which it belongs.
Template Parameters
type The type of the class that can be stored in a list. This parameter should be the type of the class which inherits directly from the ListElement class.
Constructor

ListElement();

The constructor has protected access takes no parameters. The ListElement class can only exist as a base class for another class.
Description
The ListElement class should be declared as a base class for objects that need to be stored in a list. The type template parameter should match the class type of such objects, and these objects can be stored in a List container declared with the same type template parameter.
Base Classes
ListElementBase Used internally to encapsulate common functionality that is independent of the template parameter.
See Also
List