tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
list.h File Reference
#include "tm.h"
#include "types.h"
#include "lehigh.h"
Include dependency graph for list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  list_node
 
struct  list
 

Macros

#define PLIST_ALLOC(cmp)   Plist_alloc(cmp)
 
#define PLIST_FREE(list)   Plist_free(list)
 
#define PLIST_GETSIZE(list)   list_getSize(list)
 
#define PLIST_INSERT(list, data)   Plist_insert(list, data)
 
#define PLIST_REMOVE(list, data)   Plist_remove(list, data)
 
#define PLIST_CLEAR(list)   Plist_clear(list)
 
#define TMLIST_ITER_RESET(it, list)   TMlist_iter_reset(TM_ARG it, list)
 
#define TMLIST_ITER_HASNEXT(it, list)   TMlist_iter_hasNext(TM_ARG it, list)
 
#define TMLIST_ITER_NEXT(it, list)   TMlist_iter_next(TM_ARG it, list)
 
#define TMLIST_ALLOC(cmp)   TMlist_alloc(TM_ARG cmp)
 
#define TMLIST_FREE(list)   TMlist_free(TM_ARG list)
 
#define TMLIST_GETSIZE(list)   TMlist_getSize(TM_ARG list)
 
#define TMLIST_ISEMPTY(list)   TMlist_isEmpty(TM_ARG list)
 
#define TMLIST_FIND(list, data)   TMlist_find(TM_ARG list, data)
 
#define TMLIST_INSERT(list, data)   TMlist_insert(TM_ARG list, data)
 
#define TMLIST_REMOVE(list, data)   TMlist_remove(TM_ARG list, data)
 
#define TMLIST_CLEAR(list)   TMlist_clear(TM_ARG list)
 

Typedefs

typedef struct list_node list_node_t
 
typedef list_node_tlist_iter_t
 
typedef struct list list_t
 

Functions

void list_iter_reset (list_iter_t *itPtr, list_t *listPtr)
 
TM_CALLABLE void TMlist_iter_reset (TM_ARGDECL list_iter_t *itPtr, list_t *listPtr)
 
bool_t list_iter_hasNext (list_iter_t *itPtr, list_t *listPtr)
 
TM_CALLABLE bool_t TMlist_iter_hasNext (TM_ARGDECL list_iter_t *itPtr, list_t *listPtr)
 
void * list_iter_next (list_iter_t *itPtr, list_t *listPtr)
 
TM_CALLABLE void * TMlist_iter_next (TM_ARGDECL list_iter_t *itPtr, list_t *listPtr)
 
TM_CALLABLE list_tTMlist_alloc (TM_ARGDECL comparator_t *comp)
 
list_tlist_alloc (comparator_t *comp)
 
list_tPlist_alloc (comparator_t *comp)
 
void list_free (list_t *listPtr)
 
void Plist_free (list_t *listPtr)
 
TM_CALLABLE void TMlist_free (TM_ARGDECL list_t *listPtr)
 
bool_t list_isEmpty (list_t *listPtr)
 
TM_CALLABLE bool_t TMlist_isEmpty (TM_ARGDECL list_t *listPtr)
 
long list_getSize (list_t *listPtr)
 
TM_CALLABLE long TMlist_getSize (TM_ARGDECL list_t *listPtr)
 
void * list_find (list_t *listPtr, void *dataPtr)
 
TM_CALLABLE void * TMlist_find (TM_ARGDECL list_t *listPtr, void *dataPtr)
 
bool_t list_insert (list_t *listPtr, void *dataPtr)
 
bool_t Plist_insert (list_t *listPtr, void *dataPtr)
 
TM_CALLABLE bool_t TMlist_insert (TM_ARGDECL list_t *listPtr, void *dataPtr)
 
bool_t list_remove (list_t *listPtr, void *dataPtr)
 
bool_t Plist_remove (list_t *listPtr, void *dataPtr)
 
TM_CALLABLE bool_t TMlist_remove (TM_ARGDECL list_t *listPtr, void *dataPtr)
 
TM_CALLABLE void TMlist_clear (TM_ARGDECL list_t *listPtr)
 
void Plist_clear (list_t *listPtr)
 

Macro Definition Documentation

#define PLIST_ALLOC (   cmp)    Plist_alloc(cmp)
#define PLIST_CLEAR (   list)    Plist_clear(list)
#define PLIST_FREE (   list)    Plist_free(list)
#define PLIST_GETSIZE (   list)    list_getSize(list)
#define PLIST_INSERT (   list,
  data 
)    Plist_insert(list, data)
#define PLIST_REMOVE (   list,
  data 
)    Plist_remove(list, data)
#define TMLIST_ALLOC (   cmp)    TMlist_alloc(TM_ARG cmp)
#define TMLIST_CLEAR (   list)    TMlist_clear(TM_ARG list)
#define TMLIST_FIND (   list,
  data 
)    TMlist_find(TM_ARG list, data)
#define TMLIST_FREE (   list)    TMlist_free(TM_ARG list)
#define TMLIST_GETSIZE (   list)    TMlist_getSize(TM_ARG list)
#define TMLIST_INSERT (   list,
  data 
)    TMlist_insert(TM_ARG list, data)
#define TMLIST_ISEMPTY (   list)    TMlist_isEmpty(TM_ARG list)
#define TMLIST_ITER_HASNEXT (   it,
  list 
)    TMlist_iter_hasNext(TM_ARG it, list)
#define TMLIST_ITER_NEXT (   it,
  list 
)    TMlist_iter_next(TM_ARG it, list)
#define TMLIST_ITER_RESET (   it,
  list 
)    TMlist_iter_reset(TM_ARG it, list)
#define TMLIST_REMOVE (   list,
  data 
)    TMlist_remove(TM_ARG list, data)

Typedef Documentation

typedef struct list_node list_node_t
typedef struct list list_t

Function Documentation

list_t* list_alloc ( comparator_t comp)

Here is the caller graph for this function:

void* list_find ( list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void list_free ( list_t listPtr)

Here is the call graph for this function:

Here is the caller graph for this function:

long list_getSize ( list_t listPtr)

Here is the caller graph for this function:

bool_t list_insert ( list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t list_isEmpty ( list_t listPtr)

Here is the caller graph for this function:

bool_t list_iter_hasNext ( list_iter_t itPtr,
list_t listPtr 
)

Here is the caller graph for this function:

void* list_iter_next ( list_iter_t itPtr,
list_t listPtr 
)

Here is the caller graph for this function:

void list_iter_reset ( list_iter_t itPtr,
list_t listPtr 
)

Here is the caller graph for this function:

bool_t list_remove ( list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

list_t* Plist_alloc ( comparator_t comp)

Here is the caller graph for this function:

void Plist_clear ( list_t listPtr)

Here is the call graph for this function:

void Plist_free ( list_t listPtr)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t Plist_insert ( list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function:

bool_t Plist_remove ( list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function:

TM_CALLABLE list_t* TMlist_alloc ( TM_ARGDECL comparator_t comp)

Here is the caller graph for this function:

TM_CALLABLE void TMlist_clear ( TM_ARGDECL list_t listPtr)

Here is the call graph for this function:

TM_CALLABLE void* TMlist_find ( TM_ARGDECL list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function:

TM_CALLABLE void TMlist_free ( TM_ARGDECL list_t listPtr)

Here is the call graph for this function:

TM_CALLABLE long TMlist_getSize ( TM_ARGDECL list_t listPtr)
TM_CALLABLE bool_t TMlist_insert ( TM_ARGDECL list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function:

TM_CALLABLE bool_t TMlist_isEmpty ( TM_ARGDECL list_t listPtr)
TM_CALLABLE bool_t TMlist_iter_hasNext ( TM_ARGDECL list_iter_t itPtr,
list_t listPtr 
)
TM_CALLABLE void* TMlist_iter_next ( TM_ARGDECL list_iter_t itPtr,
list_t listPtr 
)
TM_CALLABLE void TMlist_iter_reset ( TM_ARGDECL list_iter_t itPtr,
list_t listPtr 
)
TM_CALLABLE bool_t TMlist_remove ( TM_ARGDECL list_t listPtr,
void *  dataPtr 
)

Here is the call graph for this function: