IDZEBRA  2.1.2
Data Structures | Typedefs | Functions
bset.h File Reference
#include <yaz/yconfig.h>

Go to the source code of this file.

Data Structures

struct  BSetHandle_
 

Typedefs

typedef unsigned short BSetWord
 
typedef BSetWordBSet
 
typedef struct BSetHandle_ BSetHandle
 

Functions

BSetHandlemk_BSetHandle (int size, int chunk)
 
void rm_BSetHandle (BSetHandle **shp)
 
int inf_BSetHandle (BSetHandle *sh, long *used, long *alloc)
 
BSet cp_BSet (BSetHandle *sh, BSet dst, BSet src)
 
void add_BSet (BSetHandle *sh, BSet dst, unsigned member)
 
void union_BSet (BSetHandle *sh, BSet dst, BSet src)
 
BSet mk_BSet (BSetHandle **shp)
 
void rm_BSet (BSetHandle **shp)
 
void res_BSet (BSetHandle *sh, BSet dst)
 
void com_BSet (BSetHandle *sh, BSet dst)
 
void pr_BSet (BSetHandle *sh, BSet src)
 
unsigned test_BSet (BSetHandle *sh, BSet src, unsigned member)
 
int trav_BSet (BSetHandle *sh, BSet src, unsigned member)
 
int travi_BSet (BSetHandle *sh, BSet src, unsigned member)
 
unsigned hash_BSet (BSetHandle *sh, BSet src)
 
int eq_BSet (BSetHandle *sh, BSet dst, BSet src)
 
void pr_charBSet (BSetHandle *sh, BSet src, void(*f)(int))
 

Typedef Documentation

typedef BSetWord* BSet

Definition at line 28 of file bset.h.

typedef struct BSetHandle_ BSetHandle
typedef unsigned short BSetWord

Definition at line 27 of file bset.h.

Function Documentation

void add_BSet ( BSetHandle sh,
BSet  dst,
unsigned  member 
)

Definition at line 110 of file bset.c.

References SET_BIT.

Referenced by dfa_anyset_includes_nl(), dfa_parse_init(), and read_charset().

void com_BSet ( BSetHandle sh,
BSet  dst 
)

Definition at line 162 of file bset.c.

References BSetHandle_::wsize.

Referenced by dfa_parse_init(), and read_charset().

BSet cp_BSet ( BSetHandle sh,
BSet  dst,
BSet  src 
)

Definition at line 126 of file bset.c.

References BSetHandle_::wsize.

int eq_BSet ( BSetHandle sh,
BSet  dst,
BSet  src 
)

Definition at line 171 of file bset.c.

References BSetHandle_::wsize.

unsigned hash_BSet ( BSetHandle sh,
BSet  src 
)

Definition at line 151 of file bset.c.

References BSetHandle_::wsize.

int inf_BSetHandle ( BSetHandle sh,
long *  used,
long *  alloc 
)

Definition at line 70 of file bset.c.

References BSetHandle_::chunk, BSetHandle_::offset, BSetHandle_::setchain, and BSetHandle_::wsize.

Referenced by pr_verbose().

BSet mk_BSet ( BSetHandle **  shp)
BSetHandle* mk_BSetHandle ( int  size,
int  chunk 
)
void pr_BSet ( BSetHandle sh,
BSet  src 
)

Definition at line 238 of file bset.c.

References trav_BSet().

void pr_charBSet ( BSetHandle sh,
BSet  src,
void(*)(int)  f 
)

Definition at line 248 of file bset.c.

References trav_BSet().

void res_BSet ( BSetHandle sh,
BSet  dst 
)

Definition at line 135 of file bset.c.

References BSetHandle_::wsize.

Referenced by dfa_parse_init(), and read_charset().

void rm_BSet ( BSetHandle **  shp)
void rm_BSetHandle ( BSetHandle **  shp)

Definition at line 55 of file bset.c.

References ifree(), and BSetHandle_::setchain.

Referenced by rm_dfa_parse().

unsigned test_BSet ( BSetHandle sh,
BSet  src,
unsigned  member 
)

Definition at line 118 of file bset.c.

References GET_BIT.

int trav_BSet ( BSetHandle sh,
BSet  src,
unsigned  member 
)

Definition at line 183 of file bset.c.

References BSetHandle_::size.

Referenced by mk_Tnode_cset(), pr_BSet(), and pr_charBSet().

int travi_BSet ( BSetHandle sh,
BSet  src,
unsigned  member 
)

Definition at line 210 of file bset.c.

References BSetHandle_::size.

Referenced by mk_Tnode_cset().

void union_BSet ( BSetHandle sh,
BSet  dst,
BSet  src 
)

Definition at line 141 of file bset.c.

References BSetHandle_::wsize.