MySQL 9.0.0
Source Code Documentation
node_set.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2024, 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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23
24#ifndef NODE_SET_H
25#define NODE_SET_H
26
27#include "xdr_gen/xcom_vp.h"
28
29#define dbg_node_set(s) _dbg_node_set(s, #s)
30#define g_dbg_node_set(s) _g_dbg_node_set(s, #s)
31bool_t equal_node_set(node_set x, node_set y);
34bool_t is_set(node_set set, node_no i);
36node_set *alloc_node_set(node_set *set, u_int n);
37node_set *init_node_set(node_set *set, u_int n);
38node_set *reset_node_set(node_set *set);
39node_set *set_node_set(node_set *set);
40node_set bit_set_to_node_set(bit_set *set, u_int n);
41node_set clone_node_set(node_set set);
42char *_dbg_node_set(node_set set, const char *name);
43void _g_dbg_node_set(node_set set, const char *name);
44void add_node(node_set set, node_no node);
45void and_node_set(node_set *x, node_set const *y);
46void copy_node_set(node_set const *from, node_set *to);
47void copy_node_set(node_set const *from, node_set *to);
48void free_node_set(node_set *set);
49void not_node_set(node_set *x, node_set const *y);
50void or_node_set(node_set *x, node_set const *y);
51void remove_node(node_set set, node_no node);
52void xor_node_set(node_set *x, node_set const *y);
53node_set *realloc_node_set(node_set *set, u_int n);
54bool equal_node_set(node_set const *x, node_set const *y);
55#endif
std::set< Key, Compare, ut::allocator< Key > > set
Specialization of set which uses ut_allocator.
Definition: ut0new.h:2883
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:151
void remove_node(node_set set, node_no node)
node_set * set_node_set(node_set *set)
Definition: node_set.cc:141
bool_t equal_node_set(node_set x, node_set y)
Definition: node_set.cc:210
node_set * alloc_node_set(node_set *set, u_int n)
Definition: node_set.cc:60
void add_node(node_set set, node_no node)
Definition: node_set.cc:240
void free_node_set(node_set *set)
Definition: node_set.cc:105
node_set * init_node_set(node_set *set, u_int n)
Definition: node_set.cc:95
char * _dbg_node_set(node_set set, const char *name)
Debug a node set.
Definition: node_set.cc:126
bool_t is_empty_node_set(node_set set)
bool_t is_set(node_set set, node_no i)
Definition: node_set.cc:230
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:66
node_set clone_node_set(node_set set)
Definition: node_set.cc:114
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:81
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:45
case opt name
Definition: sslopt-case.h:29
__u_int u_int
Definition: types.h:73
int bool_t
Definition: types.h:35
int n
Definition: xcom_base.cc:509