ze-filter  (ze-filter-0.8.0-develop-180218)
zeBTree.new.c File Reference
#include <ze-sys.h>
#include <zeBTree.h>
#include "ze-libze.h"

Go to the source code of this file.

Classes

struct  ZEBTREC_T
 

Macros

#define RECURSIVE_TREE   1
 
#define DSTACK   0x100
 
#define AVL_BTREE   1
 
#define _DB_LH   -1
 
#define _DB_EH   0
 
#define _DB_RH   1
 
#define JBT_LOCK(mutex)   MUTEX_LOCK(mutex)
 
#define JBT_UNLOCK(mutex)   MUTEX_UNLOCK(mutex)
 
#define JBT_ZERO(jbth)
 
#define MAX_BTERR   16
 

Functions

int zeBTree_Max_Height (ZEBT_T *)
 
bool zeBTree_Init (ZEBT_T *jdbh, size_t size, JBT_CMP_T reccmp)
 
bool zeBTree_Set_BTree_Size (ZEBT_T *jdbh, bool chkCount, int maxCount)
 
bool zeBTree_Destroy (ZEBT_T *jdbh)
 
bool zeBTree_Clear (ZEBT_T *jdbh)
 
int zeBTree_Count (ZEBT_T *jdbh)
 
int zeBTree_Browse (ZEBT_T *jdbh, JBT_BROWSE_T func, void *data)
 
void * zeBTree_Get (ZEBT_T *jdbh, void *data)
 
bool zeBTree_Add (ZEBT_T *jdbh, void *data)
 
bool zeBTree_Del (ZEBT_T *jdbh, void *data)
 
bool zeBTree_Cpy (ZEBT_T *dst, ZEBT_T *org, JBT_SEL_T getit, void *arg)
 
bool zeBTree_Cleanup (ZEBT_T *jdbh, JBT_SEL_T getit, void *arg)
 

Macro Definition Documentation

◆ _DB_EH

#define _DB_EH   0

Definition at line 46 of file zeBTree.new.c.

◆ _DB_LH

#define _DB_LH   -1

Definition at line 45 of file zeBTree.new.c.

◆ _DB_RH

#define _DB_RH   1

Definition at line 47 of file zeBTree.new.c.

◆ AVL_BTREE

#define AVL_BTREE   1

Definition at line 42 of file zeBTree.new.c.

◆ DSTACK

#define DSTACK   0x100

Definition at line 39 of file zeBTree.new.c.

◆ JBT_LOCK

#define JBT_LOCK (   mutex)    MUTEX_LOCK(mutex)

Definition at line 85 of file zeBTree.new.c.

◆ JBT_UNLOCK

#define JBT_UNLOCK (   mutex)    MUTEX_UNLOCK(mutex)

Definition at line 86 of file zeBTree.new.c.

◆ JBT_ZERO

#define JBT_ZERO (   jbth)
Value:
do { \
jbth->signature = SIGNATURE; \
jbth->count = 0; \
jbth->size = 0; \
jbth->reccmp = NULL; \
jbth->root = NULL; \
jbth->chkCount = FALSE; \
jbth->maxCount = MAX_BTNODES; \
jbth->nbErr = 0; \
} while (0)
#define FALSE
Definition: macros.h:160
#define MAX_BTNODES
Definition: zeBTree.h:66
#define SIGNATURE
Definition: ze-libjc.h:75

Definition at line 88 of file zeBTree.new.c.

◆ MAX_BTERR

#define MAX_BTERR   16

Definition at line 331 of file zeBTree.new.c.

◆ RECURSIVE_TREE

#define RECURSIVE_TREE   1

Definition at line 36 of file zeBTree.new.c.

Function Documentation

◆ zeBTree_Browse()

int zeBTree_Browse ( ZEBT_T jdbh,
JBT_BROWSE_T  func,
void *  data 
)

Definition at line 272 of file zeBTree.new.c.

◆ zeBTree_Cleanup()

bool zeBTree_Cleanup ( ZEBT_T jdbh,
JBT_SEL_T  getit,
void *  arg 
)

Definition at line 606 of file zeBTree.new.c.

◆ zeBTree_Cpy()

bool zeBTree_Cpy ( ZEBT_T dst,
ZEBT_T org,
JBT_SEL_T  getit,
void *  arg 
)

Definition at line 551 of file zeBTree.new.c.

◆ zeBTree_Init()

bool zeBTree_Init ( ZEBT_T jdbh,
size_t  size,
JBT_CMP_T  reccmp 
)

Definition at line 106 of file zeBTree.new.c.

◆ zeBTree_Max_Height()

int zeBTree_Max_Height ( ZEBT_T jdbh)

Definition at line 960 of file zeBTree.new.c.