LibreOffice Module vcl (master)  1
Classes | Functions
list.cxx File Reference
#include <assert.h>
#include <cstdlib>
#include "list.h"
Include dependency graph for list.cxx:

Go to the source code of this file.

Classes

struct  lnode
 
struct  list_
 

Functions

static lnodenewNode (void *el)
 
static lnodeappendPrim (list pThis, void *el)
 
list listNewEmpty ()
 
void listDispose (list pThis)
 
void listSetElementDtor (list pThis, list_destructor f)
 
voidlistCurrent (list pThis)
 
int listCount (list pThis)
 
int listIsEmpty (list pThis)
 
int listNext (list pThis)
 
int listSkipForward (list pThis, int n)
 
int listToFirst (list pThis)
 
int listToLast (list pThis)
 
list listAppend (list pThis, void *el)
 
list listRemove (list pThis)
 
list listClear (list pThis)
 

Function Documentation

static lnode* appendPrim ( list  pThis,
void el 
)
static

Definition at line 60 of file list.cxx.

References list_::aCount, list_::cptr, list_::head, newNode(), lnode::next, lnode::prev, and list_::tail.

Referenced by listAppend().

list listAppend ( list  pThis,
void el 
)

Definition at line 173 of file list.cxx.

References appendPrim().

Referenced by vcl::AddTable(), vcl::glyfAdd(), and vcl::TrueTypeTableNew_name().

list listClear ( list  pThis)

Definition at line 208 of file list.cxx.

References list_::aCount, list_::cptr, list_::eDtor, list_::head, lnode::next, list_::tail, and lnode::value.

Referenced by listDispose().

int listCount ( list  pThis)
void* listCurrent ( list  pThis)
void listDispose ( list  pThis)
int listIsEmpty ( list  pThis)

Definition at line 124 of file list.cxx.

References list_::aCount.

Referenced by vcl::FindTable(), and vcl::StreamToMemory().

list listNewEmpty ( void  )
int listNext ( list  pThis)
list listRemove ( list  pThis)
void listSetElementDtor ( list  pThis,
list_destructor  f 
)
int listSkipForward ( list  pThis,
int  n 
)

Definition at line 135 of file list.cxx.

References list_::cptr, and lnode::next.

Referenced by listNext().

int listToFirst ( list  pThis)
int listToLast ( list  pThis)

Definition at line 162 of file list.cxx.

References list_::cptr, and list_::tail.

Referenced by vcl::glyfAdd().

static lnode* newNode ( void el)
static

Definition at line 50 of file list.cxx.

References lnode::value.

Referenced by appendPrim().