Go to the source code of this file.
Classes | |
| struct | set |
Functions | |
| void | set_initialize (struct set *const set) |
| bool | set_add (struct set *const set, uint32_t item) |
| bool | set_rm (struct set *const set, uint32_t item) |
| bool | set_contains (struct set *set, uint32_t item) |
| bool | list_contains (uint32_t const *const list, const size_t size, const uint32_t item) |
Kernel-allocated thread-safe simple sets header
See common/set.c for discussion
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
| bool list_contains | ( | uint32_t const *const | list, |
| const size_t | size, | ||
| const uint32_t | item ) |
Checks if the list contains an item
| list | A pointer to a list of words |
| size | The number of items in the list |
| item | The item to check |
| bool set_add | ( | struct set *const | set, |
| uint32_t | item ) |
Adds item to the set if it didn't already exist
| set | A pointer to the set structure |
| item | Item to add to the set |
| bool set_contains | ( | struct set * | set, |
| uint32_t | item ) |
Checks if the set contains an item
| set | A pointer to the set structure |
| item | The item to check |
| void set_initialize | ( | struct set *const | set | ) |
Initializes a a set.
| set | A pointer to a set structure |
| bool set_rm | ( | struct set *const | set, |
| uint32_t | item ) |
Removes an item from the set
| set | A pointer to the set structure |
| item | The item to remove |