TORCS  1.3.9
The Open Racing Car Simulator
List Struct Reference

A very simple list structure. More...

#include <List.h>

Collaboration diagram for List:

Public Attributes

LISTITEMcurr
 current item More...
 
LISTITEMhead
 head item More...
 
LISTITEMtail
 tail item More...
 
int n
 number of items More...
 
LISTITEM *(* retrieve )(struct List *list, void *ptr)
 Method by which to search objects. More...
 

Detailed Description

A very simple list structure.

The structure is initialised empty. The search function pointer is ListLinearSearchRetrieve.

Returns
NULL if nothing could be created.
See also
ListLinearSearchRetrieve

Definition at line 37 of file List.h.

Member Data Documentation

◆ curr

LISTITEM* List::curr

current item

Definition at line 38 of file List.h.

◆ head

LISTITEM* List::head

head item

Definition at line 39 of file List.h.

◆ n

int List::n

number of items

Definition at line 41 of file List.h.

◆ retrieve

LISTITEM*(* List::retrieve) (struct List *list, void *ptr)

Method by which to search objects.

Definition at line 43 of file List.h.

◆ tail

LISTITEM* List::tail

tail item

Definition at line 40 of file List.h.


The documentation for this struct was generated from the following file: