#include <stdlib.h>
Go to the source code of this file.
|
void * | TreeAdd (Tree *aTree, void *content, size_t size) |
|
void | TreeAddIndex (Tree *aTree, int(*compare)(void *, void *, int)) |
|
Node * | TreeFind (Tree *aTree, void *key) |
|
Node * | TreeFindIndex (Tree *aTree, void *key, int index) |
|
void | TreeFree (Tree *aTree) |
|
Tree * | TreeInitialize (int(*compare)(void *, void *, int)) |
|
void | TreeInitializeNoMalloc (Tree *aTree, int(*compare)(void *, void *, int)) |
|
int | TreeIntCompare (void *a, void *b, int) |
|
Node * | TreeNextElement (Tree *aTree, Node *curnode) |
|
int | TreePtrCompare (void *a, void *b, int) |
|
void * | TreeRemove (Tree *aTree, void *content) |
|
void * | TreeRemoveKey (Tree *aTree, void *key) |
|
void * | TreeRemoveKeyIndex (Tree *aTree, void *key, int index) |
|
void * | TreeRemoveNodeIndex (Tree *aTree, Node *aNode, int index) |
|
int | TreeStringCompare (void *a, void *b, int) |
|
Structure to hold all data for one list element
void* TreeAdd |
( |
Tree * |
aTree, |
|
|
void * |
content, |
|
|
size_t |
size |
|
) |
| |
void TreeAddIndex |
( |
Tree * |
aTree, |
|
|
int(*)(void *, void *, int) |
compare |
|
) |
| |
Node* TreeFind |
( |
Tree * |
aTree, |
|
|
void * |
key |
|
) |
| |
Node* TreeFindIndex |
( |
Tree * |
aTree, |
|
|
void * |
key, |
|
|
int |
index |
|
) |
| |
void TreeFree |
( |
Tree * |
aTree | ) |
|
Tree* TreeInitialize |
( |
int(*)(void *, void *, int) |
compare | ) |
|
Allocates and initializes a new tree structure.
- Returns
- a pointer to the new tree structure
Definition at line 65 of file Tree.c.
void TreeInitializeNoMalloc |
( |
Tree * |
aTree, |
|
|
int(*)(void *, void *, int) |
compare |
|
) |
| |
int TreeIntCompare |
( |
void * |
a, |
|
|
void * |
b, |
|
|
int |
|
|
) |
| |
int TreePtrCompare |
( |
void * |
a, |
|
|
void * |
b, |
|
|
int |
|
|
) |
| |
void* TreeRemove |
( |
Tree * |
aTree, |
|
|
void * |
content |
|
) |
| |
void* TreeRemoveKey |
( |
Tree * |
aTree, |
|
|
void * |
key |
|
) |
| |
void* TreeRemoveKeyIndex |
( |
Tree * |
aTree, |
|
|
void * |
key, |
|
|
int |
index |
|
) |
| |
void* TreeRemoveNodeIndex |
( |
Tree * |
aTree, |
|
|
Node * |
curnode, |
|
|
int |
index |
|
) |
| |
Remove an item from a tree
- Parameters
-
aTree | the list to which the item is to be added |
curnode | the list item content itself |
Definition at line 420 of file Tree.c.
int TreeStringCompare |
( |
void * |
a, |
|
|
void * |
b, |
|
|
int |
|
|
) |
| |