MySQL 8.3.0
Source Code Documentation
node_set.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2023, 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#include "xdr_gen/xcom_vp.h"
27
28#define dbg_node_set(s) _dbg_node_set(s, #s)
29#define g_dbg_node_set(s) _g_dbg_node_set(s, #s)
30bool_t equal_node_set(node_set x, node_set y);
33bool_t is_set(node_set set, node_no i);
35node_set *alloc_node_set(node_set *set, u_int n);
36node_set *init_node_set(node_set *set, u_int n);
37node_set *reset_node_set(node_set *set);
38node_set *set_node_set(node_set *set);
39node_set bit_set_to_node_set(bit_set *set, u_int n);
40node_set clone_node_set(node_set set);
41char *_dbg_node_set(node_set set, const char *name);
42void _g_dbg_node_set(node_set set, const char *name);
43void add_node(node_set set, node_no node);
44void and_node_set(node_set *x, node_set const *y);
45void copy_node_set(node_set const *from, node_set *to);
46void copy_node_set(node_set const *from, node_set *to);
47void free_node_set(node_set *set);
48void not_node_set(node_set *x, node_set const *y);
49void or_node_set(node_set *x, node_set const *y);
50void remove_node(node_set set, node_no node);
51void xor_node_set(node_set *x, node_set const *y);
52node_set *realloc_node_set(node_set *set, u_int n);
53bool equal_node_set(node_set const *x, node_set const *y);
54#endif
std::set< Key, Compare, ut::allocator< Key > > set
Specialization of set which uses ut_allocator.
Definition: ut0new.h:2881
void and_node_set(node_set *x, node_set const *y)
bool_t is_full_node_set(node_set set)
node_set * reset_node_set(node_set *set)
Definition: node_set.cc:150
void remove_node(node_set set, node_no node)
node_set * set_node_set(node_set *set)
Definition: node_set.cc:140
bool_t equal_node_set(node_set x, node_set y)
Definition: node_set.cc:209
node_set * alloc_node_set(node_set *set, u_int n)
Definition: node_set.cc:59
void add_node(node_set set, node_no node)
Definition: node_set.cc:239
void free_node_set(node_set *set)
Definition: node_set.cc:104
node_set * init_node_set(node_set *set, u_int n)
Definition: node_set.cc:94
char * _dbg_node_set(node_set set, const char *name)
Debug a node set.
Definition: node_set.cc:125
bool_t is_empty_node_set(node_set set)
bool_t is_set(node_set set, node_no i)
Definition: node_set.cc:229
void or_node_set(node_set *x, node_set const *y)
void xor_node_set(node_set *x, node_set const *y)
node_set * realloc_node_set(node_set *set, u_int n)
Definition: node_set.cc:65
node_set clone_node_set(node_set set)
Definition: node_set.cc:113
u_int node_count(node_set set)
void _g_dbg_node_set(node_set set, const char *name)
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)
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:508