Definition in file eg_bbtree.h.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include <math.h>
#include "eg_io.h"
#include "eg_config.h"
#include "eg_macros.h"
#include "eg_mempool.h"
#include "eg_compare.h"
Include dependency graph for eg_bbtree.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | EGbbtree_t |
| Balance Binary Tree structure. More... | |
| struct | EGbbtreeNode_t |
| Balance Binary Tree Node structure. More... | |
| #define | EG_BBTREE_DEBUGL 10 |
| Macro controling the debuging level for this structure. | |
| typedef EGbbtree_t | EGbbtree_t |
| Balance Binary Tree structure. | |
| typedef EGbbtreeNode_t | EGbbtreeNode_t |
| Balance Binary Tree Node structure. | |
| EGbbtreeNode_t * | EGbbtreeAdd (EGbbtree_t *tree, void *elem) |
| Add a new element to the tree. | |
| int | EGbbtreeClear (EGbbtree_t *tree, EGfree_f dataFree) |
| Given an initialized bbtree, left it at it initial state (just after EGnewBbtree). | |
| int | EGbbtreeClearMP (EGbbtree_t *tree, EGfreeMP_f dataFree, EGmemPool_t *datamem) |
| Given an initialized bbtree, left it at it initial state (just after EGnewBbtree). | |
| void | EGbbtreeDisplay (EGbbtree_t *tree, EGdisplay_f dataDisplay, FILE *file) |
| Display function for the tree. | |
| EGbbtreeNode_t * | EGbbtreeFind (EGbbtree_t *tree, const void *elem) |
| Find an element in the tree. | |
| EGbbtreeNode_t * | EGbbtreeMax (EGbbtree_t *tree) |
| Return the maximum element in the tree. | |
| EGbbtreeNode_t * | EGbbtreeMin (EGbbtree_t *tree) |
| Return the minimum element in the tree. | |
| EGbbtreeNode_t * | EGbbtreePredecessor (EGbbtreeNode_t *node) |
| , get the predecessor of the current node. | |
| int | EGbbtreeRemove (EGbbtree_t *tree, EGbbtreeNode_t *node) |
| Delete an element from the tree. | |
| EGbbtreeNode_t * | EGbbtreeSuccessor (EGbbtreeNode_t *node) |
| , get the successor of the current node. | |
| void | EGfreeBbtree (void *tree) |
| Defeault destructor. | |
| EGbbtree_t * | EGnewBbtree (EGmemPool_t *mem, EGcompare_f compare) |
| Defeault constructor. | |
|
|
Macro controling the debuging level for this structure.
Definition at line 56 of file eg_bbtree.h. |
|
|
Balance Binary Tree structure.
|
|
|
Balance Binary Tree Node structure.
|
|
||||||||||||
|
Add a new element to the tree.
Definition at line 401 of file eg_bbtree.c. Here is the call graph for this function: ![]() |
|
||||||||||||
|
Given an initialized bbtree, left it at it initial state (just after EGnewBbtree).
Definition at line 173 of file eg_bbtree.h. |
|
||||||||||||||||
|
Given an initialized bbtree, left it at it initial state (just after EGnewBbtree).
Definition at line 221 of file eg_bbtree.h. |
|
||||||||||||||||
|
Display function for the tree.
Definition at line 659 of file eg_bbtree.c. |
|
||||||||||||
|
Find an element in the tree.
Definition at line 268 of file eg_bbtree.h. |
|
|
Return the maximum element in the tree.
Definition at line 416 of file eg_bbtree.h. |
|
|
Return the minimum element in the tree.
Definition at line 398 of file eg_bbtree.h. |
|
|
, get the predecessor of the current node.
Definition at line 334 of file eg_bbtree.h. |
|
||||||||||||
|
Delete an element from the tree.
Definition at line 524 of file eg_bbtree.c. Here is the call graph for this function: ![]() |
|
|
, get the successor of the current node.
Definition at line 366 of file eg_bbtree.h. |
|
|
Defeault destructor.
Definition at line 127 of file eg_bbtree.h. |
|
||||||||||||
|
Defeault constructor.
Definition at line 108 of file eg_bbtree.h. |
1.4.5