Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

psList Struct Reference
[LinkedList]

#include <psList.h>

Collaboration diagram for psList:

Collaboration graph
[legend]

Detailed Description

The psList Linked list structure.

User should not allocate this struct directly; rather the psListAlloc should be used.

See also:
psListAlloc

Definition at line 52 of file psList.h.

Data Fields

long n
 number of elements on list
psListElem * head
 first element on list (may be NULL)
psListElem * tail
 last element on list (may be NULL)
psArray * iterators
 array of all iterators associated with this list.
pthread_mutex_t p_lock
 mutex to lock a node during changes
void * lock
 Optional lock for thread safety.


Field Documentation

psListElem* psList::head
 

first element on list (may be NULL)

Definition at line 55 of file psList.h.

psArray* psList::iterators
 

array of all iterators associated with this list.

First iterator is used internally to improve performance when using indexed access, all others are user-level iterators created by psListIteratorAlloc.

Definition at line 58 of file psList.h.

void* psList::lock
 

Optional lock for thread safety.

Definition at line 63 of file psList.h.

long psList::n
 

number of elements on list

Definition at line 54 of file psList.h.

pthread_mutex_t psList::p_lock
 

mutex to lock a node during changes

Definition at line 62 of file psList.h.

psListElem* psList::tail
 

last element on list (may be NULL)

Definition at line 56 of file psList.h.


The documentation for this struct was generated from the following file:
Generated on Thu Oct 13 14:33:45 2005 for Pan-STARRS Foundation Library by  doxygen 1.4.2