Defines node type lrtree_node_t which can be stored in trees which need only left and right pointers (see splaytree_t).
LRTree-Node | Defines node type lrtree_node_t which can be stored in trees which need only left and right pointers (see splaytree_t). |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file LRTree-Node. |
Types | |
struct lrtree_node_t | Export lrtree_node_t into global namespace. |
lrtree_node_t | Management overhead of objects which wants to be stored in a splaytree_t. |
left | Points to left subtree. |
right | Points to right subtree. |
lifetime | |
lrtree_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 LRTree-Node.
typedef struct lrtree_node_t lrtree_node_t
Export lrtree_node_t into global namespace.
struct lrtree_node_t
Management overhead of objects which wants to be stored in a splaytree_t. A node of type lrtree_node_t can be stored in binary tree structures which needs a pointer to a left and a right child.
left╭──────╮right ╭─┤ node ├─╮ │ ╰──────╯ │ ╭───∇───╮ ╭──∇────╮ │ left │ │ right │ │ child │ │ child │ ╰┬─────┬╯ ╰┬─────┬╯ left right left right
left | Points to left subtree. |
right | Points to right subtree. |
lifetime | |
lrtree_node_INIT | Static initializer. |
Management overhead of objects which wants to be stored in a splaytree_t.
struct lrtree_node_t
Implements a splay tree index.
struct splaytree_t
Export lrtree_node_t into global namespace.
typedef struct lrtree_node_t lrtree_node_t
Points to left subtree.
lrtree_node_t * left
Points to right subtree.
lrtree_node_t * right
Static initializer.
#define lrtree_node_INIT { 0, 0 }