MySQL  8.0.22
Source Code Documentation
node_set.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
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
void copy_node_set(node_set const *from, node_set *to)
Definition: node_set.cc:77
void remove_node(node_set set, node_no node)
Definition: node_set.cc:234
void add_node(node_set set, node_no node)
Definition: node_set.cc:226
void free_node_set(node_set *set)
Definition: node_set.cc:101
char * _dbg_node_set(node_set set, const char *name)
Debug a node set.
Definition: node_set.cc:122
node_set * init_node_set(node_set *set, u_int n)
Definition: node_set.cc:91
void xor_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:258
u_int node_count(node_set set)
Definition: node_set.cc:173
case opt name
Definition: sslopt-case.h:32
void not_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:267
void and_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:242
bool_t is_set(node_set set, node_no i)
Definition: node_set.cc:216
__u_int u_int
Definition: types.h:72
int bool_t
Definition: types.h:34
node_set clone_node_set(node_set set)
Definition: node_set.cc:110
node_set * reset_node_set(node_set *set)
Definition: node_set.cc:147
node_set * realloc_node_set(node_set *set, u_int n)
Definition: node_set.cc:62
bool_t is_empty_node_set(node_set set)
Definition: node_set.cc:184
int n
Definition: xcom_base.cc:442
node_set * alloc_node_set(node_set *set, u_int n)
Definition: node_set.cc:56
bool_t is_full_node_set(node_set set)
Definition: node_set.cc:194
bool_t equal_node_set(node_set x, node_set y)
Definition: node_set.cc:204
void or_node_set(node_set *x, node_set const *y)
Definition: node_set.cc:250
void _g_dbg_node_set(node_set set, const char *name)
Debug a node set with G_MESSAGE.
Definition: node_set.cc:158
node_set bit_set_to_node_set(bit_set *set, u_int n)
Definition: node_set.cc:41
node_set * set_node_set(node_set *set)
Definition: node_set.cc:137