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

Go to the source code of this file.

Macros

#define TMHEAP_INSERT(h, d)   TMheap_insert(TM_ARG (h), (d))
 
#define TMHEAP_REMOVE(h)   TMheap_remove(TM_ARG (h))
 

Typedefs

typedef struct heap heap_t
 

Functions

heap_theap_alloc (long initCapacity, comparator_t *compare)
 
heap_tTMheap_alloc (TM_ARGDECL long initCapacity, comparator_t *compare)
 
void heap_free (heap_t *heapPtr)
 
bool_t heap_insert (heap_t *heapPtr, void *dataPtr)
 
TM_CALLABLE bool_t TMheap_insert (TM_ARGDECL heap_t *heapPtr, void *dataPtr)
 
void * heap_remove (heap_t *heapPtr)
 
TM_CALLABLE void * TMheap_remove (TM_ARGDECL heap_t *heapPtr)
 
bool_t heap_isValid (heap_t *heapPtr)
 

Macro Definition Documentation

#define TMHEAP_INSERT (   h,
 
)    TMheap_insert(TM_ARG (h), (d))
#define TMHEAP_REMOVE (   h)    TMheap_remove(TM_ARG (h))

Typedef Documentation

typedef struct heap heap_t

Function Documentation

heap_t* heap_alloc ( long  initCapacity,
comparator_t compare 
)

Here is the caller graph for this function:

void heap_free ( heap_t heapPtr)
bool_t heap_insert ( heap_t heapPtr,
void *  dataPtr 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool_t heap_isValid ( heap_t heapPtr)

Here is the call graph for this function:

void* heap_remove ( heap_t heapPtr)

Here is the call graph for this function:

heap_t* TMheap_alloc ( TM_ARGDECL long  initCapacity,
comparator_t compare 
)
TM_CALLABLE bool_t TMheap_insert ( TM_ARGDECL heap_t heapPtr,
void *  dataPtr 
)

Here is the call graph for this function:

TM_CALLABLE void* TMheap_remove ( TM_ARGDECL heap_t heapPtr)

Here is the call graph for this function: