File query_bitset.c
FileList > cubrid > src > optimizer > query_bitset.c
Go to the source code of this file
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "query_bitset.h"
#include "error_manager.h"
#include "memory_alloc.h"
Public Attributes
| Type |
Name |
| BITSET |
EMPTY_SET = { [**NULL**](freelistheap_8h.md#define-null), [**empty\_set\_words**](query__bitset_8c.md#variable-empty_set_words), ((( 64 + ( 32 -1)) & ~( 32 -1)) >> 5 ) , {{0}} }
|
Public Static Attributes
Public Functions
| Type |
Name |
| void |
bitset_add (BITSET * dst, int x)
|
| void |
bitset_assign (BITSET * dst, const BITSET * src)
|
| int |
bitset_cardinality (const BITSET * s)
|
| void |
bitset_delset (BITSET * s)
|
| void |
bitset_difference (BITSET * dst, const BITSET * src)
|
| void |
bitset_exchange (BITSET * v1, BITSET * v2)
|
| void |
bitset_extend (BITSET * dst, int nwords)
|
| int |
bitset_first_member (const BITSET * s)
|
| void |
bitset_init (BITSET * s, QO_ENV * env)
|
| void |
bitset_intersect (BITSET * dst, const BITSET * src)
|
| int |
bitset_intersects (const BITSET * r, const BITSET * s)
|
| void |
bitset_invert (BITSET * dst)
|
| int |
bitset_is_empty (const BITSET * s)
|
| int |
bitset_is_equivalent (const BITSET * r, const BITSET * s)
|
| int |
bitset_iterate (const BITSET * s, BITSET_ITERATOR * si)
|
| int |
bitset_next_member (BITSET_ITERATOR * si)
|
| int |
bitset_position (const BITSET * s, int x)
|
| void |
bitset_print (const BITSET * s, FILE * fp)
|
| void |
bitset_remove (BITSET * dst, int x)
|
| int |
bitset_subset (const BITSET * r, const BITSET * s)
|
| void |
bitset_union (BITSET * dst, const BITSET * src)
|
| void |
set_stats (FILE * fp)
|
Macros
| Type |
Name |
| define |
NBYTES (n) ((n) \* [**sizeof**](broker__monitor_8c.md#function-timeout)([**BITSET\_CARRIER**](query__bitset_8h.md#typedef-bitset_carrier)))
|
| define |
NELEMS (n) ((n) \* [**\_WORDSIZE**](query__bitset_8h.md#define-_wordsize))
|
| define |
bitset_free (ptr) [**free\_and\_init**](memory__alloc_8h.md#define-free_and_init)(ptr)
|
| define |
bitset_malloc (env, size) [**malloc**](memory__cwrapper_8h.md#define-malloc)(size)
|
Public Attributes Documentation
variable EMPTY_SET
Public Static Attributes Documentation
variable empty_set_words
BITSET_CARRIER empty_set_words[(((64+(32 -1)) &~(32 -1)) > > 5)];
variable nbits
Public Functions Documentation
function bitset_add
void bitset_add (
BITSET * dst,
int x
)
function bitset_assign
void bitset_assign (
BITSET * dst,
const BITSET * src
)
function bitset_cardinality
int bitset_cardinality (
const BITSET * s
)
function bitset_delset
void bitset_delset (
BITSET * s
)
function bitset_difference
void bitset_difference (
BITSET * dst,
const BITSET * src
)
function bitset_exchange
void bitset_exchange (
BITSET * v1,
BITSET * v2
)
function bitset_extend
void bitset_extend (
BITSET * dst,
int nwords
)
function bitset_first_member
int bitset_first_member (
const BITSET * s
)
function bitset_init
void bitset_init (
BITSET * s,
QO_ENV * env
)
function bitset_intersect
void bitset_intersect (
BITSET * dst,
const BITSET * src
)
function bitset_intersects
int bitset_intersects (
const BITSET * r,
const BITSET * s
)
function bitset_invert
void bitset_invert (
BITSET * dst
)
function bitset_is_empty
int bitset_is_empty (
const BITSET * s
)
function bitset_is_equivalent
int bitset_is_equivalent (
const BITSET * r,
const BITSET * s
)
function bitset_iterate
int bitset_iterate (
const BITSET * s,
BITSET_ITERATOR * si
)
function bitset_next_member
int bitset_next_member (
BITSET_ITERATOR * si
)
function bitset_position
int bitset_position (
const BITSET * s,
int x
)
function bitset_print
void bitset_print (
const BITSET * s,
FILE * fp
)
function bitset_remove
void bitset_remove (
BITSET * dst,
int x
)
function bitset_subset
int bitset_subset (
const BITSET * r,
const BITSET * s
)
function bitset_union
void bitset_union (
BITSET * dst,
const BITSET * src
)
function set_stats
void set_stats (
FILE * fp
)
Macro Definition Documentation
define NBYTES
#define NBYTES (
n
) `((n) * sizeof ( BITSET_CARRIER ))`
define NELEMS
#define NELEMS (
n
) `((n) * _WORDSIZE )`
define bitset_free
#define bitset_free (
ptr
) `free_and_init (ptr)`
define bitset_malloc
#define bitset_malloc (
env,
size
) `malloc (size)`
The documentation for this class was generated from the following file cubrid/src/optimizer/query_bitset.c