MySQL  8.0.26
Source Code Documentation
node_set.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2021, Oracle and/or its affiliates.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 
23 #ifndef NODE_SET_H
24 #define NODE_SET_H
25 
26 #define dbg_node_set(s) _dbg_node_set(s, #s)
27 #define g_dbg_node_set(s) _g_dbg_node_set(s, #s)
28 bool_t equal_node_set(node_set x, node_set y);
29 bool_t is_empty_node_set(node_set set);
30 bool_t is_full_node_set(node_set set);
31 bool_t is_set(node_set set, node_no i);
32 u_int node_count(node_set set);
33 node_set *alloc_node_set(node_set *set, u_int n);
34 node_set *init_node_set(node_set *set, u_int n);
35 node_set *reset_node_set(node_set *set);
36 node_set *set_node_set(node_set *set);
37 node_set bit_set_to_node_set(bit_set *set, u_int n);
38 node_set clone_node_set(node_set set);
39 char *_dbg_node_set(node_set set, const char *name);
40 void _g_dbg_node_set(node_set set, const char *name);
41 void add_node(node_set set, node_no node);
42 void and_node_set(node_set *x, node_set const *y);
43 void copy_node_set(node_set const *from, node_set *to);
44 void copy_node_set(node_set const *from, node_set *to);
45 void free_node_set(node_set *set);
46 void not_node_set(node_set *x, node_set const *y);
47 void or_node_set(node_set *x, node_set const *y);
48 void remove_node(node_set set, node_no node);
49 void xor_node_set(node_set *x, node_set const *y);
50 node_set *realloc_node_set(node_set *set, u_int n);
51 
52 #endif
constexpr value_type set
Definition: classic_protocol_constants.h:274
void and_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:245
bool_t is_full_node_set(node_set set)
Definition: node_set.cc:197
void remove_node(node_set set, node_no node)
Definition: node_set.cc:237
bool_t equal_node_set(node_set x, node_set y)
Definition: node_set.cc:207
void add_node(node_set set, node_no node)
Definition: node_set.cc:229
void free_node_set(node_set *set)
Definition: node_set.cc:104
bool_t is_empty_node_set(node_set set)
Definition: node_set.cc:187
bool_t is_set(node_set set, node_no i)
Definition: node_set.cc:219
char * _dbg_node_set(node_set set, const char *name)
Debug a node set.
Definition: node_set.cc:125
void or_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:253
node_set * realloc_node_set(node_set *set, u_int n)
Definition: node_set.cc:65
void xor_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:261
node_set clone_node_set(node_set set)
Definition: node_set.cc:113
u_int node_count(node_set set)
Definition: node_set.cc:176
node_set * init_node_set(node_set *set, u_int n)
Definition: node_set.cc:94
node_set * set_node_set(node_set *set)
Definition: node_set.cc:140
node_set * alloc_node_set(node_set *set, u_int n)
Definition: node_set.cc:59
void _g_dbg_node_set(node_set set, const char *name)
Debug a node set with G_MESSAGE.
Definition: node_set.cc:161
void copy_node_set(node_set const *from, node_set *to)
Definition: node_set.cc:80
void not_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:270
node_set * reset_node_set(node_set *set)
Definition: node_set.cc:150
node_set bit_set_to_node_set(bit_set *set, u_int n)
Definition: node_set.cc:44
case opt name
Definition: sslopt-case.h:32
__u_int u_int
Definition: types.h:72
int bool_t
Definition: types.h:34
int n
Definition: xcom_base.cc:445