List Classes.A list named NAME with node pointer type TYPE has the following aspect:
class NAME { /// Pointer which can be used as you want. TYPE *nodes; /// Number of nodes. int n_nodes; /// Constructor. NAME(); /// Add a list at the end of the current list. void add(NAME *list); /// Add a node at the end of the current list. void addNode(TYPE *node_) };To declare a new list, just use the macro (in ".h" files):
#DEFINE_NEW_LIST(NAME, TYPE);and to implement this list, use the macro (in ".cc" files):
#define IMPLEMENT_NEW_LIST(NAME, TYPE)The name of a list which TYPE nodes should be something like "TYPEList".
Alphabetic index Hierarchy of classes