class List

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.

  /// 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):


and to implement this list, use the macro (in ".cc" files):


The name of a list which TYPE nodes should be something like "TYPEList".

Ronan Collobert (

Alphabetic index Hierarchy of classes

This page was generated with the help of DOC++.