tac0S
Template Affectional Command Operating System
Public Member Functions | Public Attributes | List of all members
ListElement Class Reference

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

ListElementnext
 
long long key
 
void * item
 

Detailed Description

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.

Constructor & Destructor Documentation

ListElement::ListElement ( void *  itemPtr,
long long  sortKey 
)

ListElement::ListElement Initialize a list element, so it can be added somewhere on a list.

Parameters
itemPtris the item to be put on the list. It can be a pointer to anything.
sortKeyis the priority of the item, if any.

The documentation for this class was generated from the following files: