tac0S
Template Affectional Command Operating System
|
The following class defines a "list element" – which is used to keep track of one item on a list. It is equivalent to a LISP cell, with a "car" ("next") pointing to the next element on the list, and a "cdr" ("item") pointing to the item on the list. More...
#include <list.h>
Public Member Functions | |
ListElement (void *itemPtr, long long sortKey) | |
ListElement::ListElement Initialize a list element, so it can be added somewhere on a list. More... | |
Public Attributes | |
ListElement * | next |
long long | key |
void * | item |
The following class defines a "list element" – which is used to keep track of one item on a list. It is equivalent to a LISP cell, with a "car" ("next") pointing to the next element on the list, and a "cdr" ("item") pointing to the item on the list.
Internal data structures kept public so that List operations can access them directly.
ListElement::ListElement | ( | void * | itemPtr, |
long long | sortKey | ||
) |
ListElement::ListElement Initialize a list element, so it can be added somewhere on a list.
itemPtr | is the item to be put on the list. It can be a pointer to anything. |
sortKey | is the priority of the item, if any. |