Linux Kernel
3.7.1
|
#include <linux/compiler.h>
#include <linux/rbtree.h>
Go to the source code of this file.
Data Structures | |
struct | rb_augment_callbacks |
Macros | |
#define | RB_DECLARE_CALLBACKS(rbstatic, rbname, rbstruct, rbfield, rbtype, rbaugmented, rbcompute) |
#define | RB_RED 0 |
#define | RB_BLACK 1 |
#define | __rb_parent(pc) ((struct rb_node *)(pc & ~3)) |
#define | __rb_color(pc) ((pc) & 1) |
#define | __rb_is_black(pc) __rb_color(pc) |
#define | __rb_is_red(pc) (!__rb_color(pc)) |
#define | rb_color(rb) __rb_color((rb)->__rb_parent_color) |
#define | rb_is_red(rb) __rb_is_red((rb)->__rb_parent_color) |
#define | rb_is_black(rb) __rb_is_black((rb)->__rb_parent_color) |
Functions | |
void | __rb_insert_augmented (struct rb_node *node, struct rb_root *root, void(*augment_rotate)(struct rb_node *old, struct rb_node *new)) |
void | __rb_erase_color (struct rb_node *parent, struct rb_root *root, void(*augment_rotate)(struct rb_node *old, struct rb_node *new)) |
Definition at line 92 of file rbtree_augmented.h.
#define __rb_is_black | ( | pc | ) | __rb_color(pc) |
Definition at line 93 of file rbtree_augmented.h.
#define __rb_is_red | ( | pc | ) | (!__rb_color(pc)) |
Definition at line 94 of file rbtree_augmented.h.
Definition at line 90 of file rbtree_augmented.h.
#define RB_BLACK 1 |
Definition at line 88 of file rbtree_augmented.h.
#define rb_color | ( | rb | ) | __rb_color((rb)->__rb_parent_color) |
Definition at line 95 of file rbtree_augmented.h.
#define RB_DECLARE_CALLBACKS | ( | rbstatic, | |
rbname, | |||
rbstruct, | |||
rbfield, | |||
rbtype, | |||
rbaugmented, | |||
rbcompute | |||
) |
Definition at line 53 of file rbtree_augmented.h.
#define rb_is_black | ( | rb | ) | __rb_is_black((rb)->__rb_parent_color) |
Definition at line 97 of file rbtree_augmented.h.
#define rb_is_red | ( | rb | ) | __rb_is_red((rb)->__rb_parent_color) |
Definition at line 96 of file rbtree_augmented.h.
#define RB_RED 0 |
Definition at line 87 of file rbtree_augmented.h.