InnoDB Plugin
1.0
Main Page
Data Structures
Files
File List
Globals
include
ut0bh.h
Go to the documentation of this file.
1
/***************************************************************************/
19
/******************************************************************/
26
#ifndef INNOBASE_UT0BH_H
27
#define INNOBASE_UT0BH_H
28
29
#include "
univ.i
"
30
32
typedef
int (*
ib_bh_cmp_t
)(
const
void
* p1,
const
void
* p2);
33
34
struct
ib_bh_t
;
35
36
/**********************************************************************/
39
UNIV_INLINE
40
ulint
41
ib_bh_size
(
42
/*=======*/
43
const
ib_bh_t
* ib_bh);
45
/**********************************************************************/
48
UNIV_INLINE
49
ibool
50
ib_bh_is_empty
(
51
/*===========*/
52
const
ib_bh_t
* ib_bh);
54
/**********************************************************************/
57
UNIV_INLINE
58
ibool
59
ib_bh_is_full
(
60
/*===========*/
61
const
ib_bh_t
* ib_bh);
63
/**********************************************************************/
66
UNIV_INLINE
67
void
*
68
ib_bh_get
(
69
/*=======*/
70
ib_bh_t
* ib_bh,
71
ulint i);
73
/**********************************************************************/
76
UNIV_INLINE
77
void
*
78
ib_bh_set
(
79
/*======*/
80
ib_bh_t
* ib_bh,
81
ulint i,
82
const
void
* elem);
84
/**********************************************************************/
87
UNIV_INLINE
88
void
*
89
ib_bh_first
(
90
/*========*/
91
ib_bh_t
* ib_bh);
93
/**********************************************************************/
96
UNIV_INLINE
97
void
*
98
ib_bh_last
(
99
/*========*/
100
ib_bh_t
* ib_bh);
102
/**********************************************************************/
105
UNIV_INTERN
106
ib_bh_t
*
107
ib_bh_create
(
108
/*=========*/
109
ib_bh_cmp_t
compare
,
110
ulint
sizeof_elem
,
111
ulint
max_elems
);
113
/**********************************************************************/
116
UNIV_INTERN
117
void
118
ib_bh_free
(
119
/*=======*/
120
ib_bh_t
* ib_bh);
122
/**********************************************************************/
125
UNIV_INTERN
126
void
*
127
ib_bh_push
(
128
/*=======*/
129
ib_bh_t
* ib_bh,
130
const
void
* elem);
132
/**********************************************************************/
134
UNIV_INTERN
135
void
136
ib_bh_pop
(
137
/*======*/
138
ib_bh_t
* ib_bh);
141
struct
ib_bh_t
{
142
ulint
max_elems
;
143
ulint
n_elems
;
144
ulint
sizeof_elem
;
145
ib_bh_cmp_t
compare
;
146
};
147
148
#ifndef UNIV_NONINL
149
#include "
ut0bh.ic
"
150
#endif
151
152
#endif
/* INNOBASE_UT0BH_H */
Generated on Fri Aug 21 2015 19:14:24 for InnoDB Plugin by
1.8.1.2