Defines node type patriciatrie_node_t which can be stored in tries of type patriciatrie_t.
PatriciaTrie-Node | Defines node type patriciatrie_node_t which can be stored in tries of type patriciatrie_t. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file PatriciaTrie-Node. |
Types | |
struct patriciatrie_node_t | Export patriciatrie_node_t into global namespace. |
patriciatrie_node_t | Management overhead of objects which wants to be stored in a patriciatrie_t. |
bit_offset | The bit offset of the bit to test. |
left | Follow left pointer if testet bit at bit_offset is 0. |
right | Follow right pointer if testet bit at bit_offset is 1. |
lifetime | |
patriciatrie_node_INIT | Static initializer. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2012 Jörg Seebohn
Header file PatriciaTrie-Node.
typedef struct patriciatrie_node_t patriciatrie_node_t
Export patriciatrie_node_t into global namespace.
struct patriciatrie_node_t
Management overhead of objects which wants to be stored in a patriciatrie_t.
╭───────╮ │ node │ left├───────┤right (bit at off-╭──┤ offset├──╮ (bit at set is 0) │ ╰───────╯ │ offset is 1) ╭────∇──╮ ╭──∇────╮ │ left │ │ right │ ├───────┤ ├───────┤ │ offset│ │ offset│ ╰┬─────┬╯ ╰┬─────┬╯ left right left right
bit_offset | The bit offset of the bit to test. |
left | Follow left pointer if testet bit at bit_offset is 0. |
right | Follow right pointer if testet bit at bit_offset is 1. |
lifetime | |
patriciatrie_node_INIT | Static initializer. |
patriciatrie_node_t * left
Follow left pointer if testet bit at bit_offset is 0.
patriciatrie_node_t * right
Follow right pointer if testet bit at bit_offset is 1.
Management overhead of objects which wants to be stored in a patriciatrie_t.
struct patriciatrie_node_t
Export patriciatrie_node_t into global namespace.
typedef struct patriciatrie_node_t patriciatrie_node_t
The bit offset of the bit to test.
size_t bit_offset
Follow left pointer if testet bit at bit_offset is 0.
patriciatrie_node_t * left
Follow right pointer if testet bit at bit_offset is 1.
patriciatrie_node_t * right
Static initializer.
#define patriciatrie_node_INIT { 0, 0, 0 }