RTEMS CPU Kit with SuperCore
Macros | Typedefs | Functions
sapi/include/rtems/rbtree.h File Reference

Constants and Structures Associated with the RBTree API in RTEMS. More...

#include <rtems/score/rbtree.h>
Include dependency graph for sapi/include/rtems/rbtree.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RTEMS_RBTREE_INITIALIZER_EMPTY(name)   RBTREE_INITIALIZER_EMPTY(name)
 RBTree initializer for an empty rbtree with designator name.
 
#define RTEMS_RBTREE_DEFINE_EMPTY(name)   RBTREE_DEFINE_EMPTY(name)
 RBTree definition for an empty rbtree with designator name.
 

Typedefs

typedef RBTree_Node rtems_rbtree_node
 A node that can be manipulated in the rbtree.
 
typedef RBTree_Control rtems_rbtree_control
 The rbtree's control anchors the rbtree.
 
typedef RBTree_Compare_result rtems_rbtree_compare_result
 Integer type for compare results. More...
 
typedef RBTree_Compare rtems_rbtree_compare
 Compares two red-black tree nodes. More...
 

Functions

RTEMS_INLINE_ROUTINE void rtems_rbtree_initialize (rtems_rbtree_control *the_rbtree, rtems_rbtree_compare compare, void *starting_address, size_t number_nodes, size_t node_size, bool is_unique)
 Initialize a RBTree header. More...
 
RTEMS_INLINE_ROUTINE void rtems_rbtree_initialize_empty (rtems_rbtree_control *the_rbtree)
 Initialize this RBTree as Empty. More...
 
RTEMS_INLINE_ROUTINE void rtems_rbtree_set_off_tree (rtems_rbtree_node *node)
 Set off RBtree. More...
 
RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_node_off_tree (const rtems_rbtree_node *node)
 Is the Node off RBTree. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_root (const rtems_rbtree_control *the_rbtree)
 Return pointer to RBTree root. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_min (const rtems_rbtree_control *the_rbtree)
 Return pointer to RBTree Minimum. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_max (const rtems_rbtree_control *the_rbtree)
 Return pointer to RBTree maximum. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_left (const rtems_rbtree_node *the_node)
 Return pointer to the left child node from this node. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_right (const rtems_rbtree_node *the_node)
 Return pointer to the right child node from this node. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_parent (const rtems_rbtree_node *the_node)
 Returns a pointer to the parent of this node. More...
 
RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_empty (const rtems_rbtree_control *the_rbtree)
 Is the RBTree empty. More...
 
RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_min (const rtems_rbtree_control *the_rbtree, const rtems_rbtree_node *the_node)
 Is this the minimum node on the RBTree. More...
 
RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_max (const rtems_rbtree_control *the_rbtree, const rtems_rbtree_node *the_node)
 Is this the maximum node on the RBTree. More...
 
RTEMS_INLINE_ROUTINE bool rtems_rbtree_is_root (const rtems_rbtree_node *the_node)
 Returns true if this node is the root node of a red-black tree, and false otherwise. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_find (const rtems_rbtree_control *the_rbtree, const rtems_rbtree_node *the_node, rtems_rbtree_compare compare, bool is_unique)
 Tries to find a node for the specified key in the tree. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_predecessor (const rtems_rbtree_node *node)
 Returns the predecessor of a node. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_successor (const rtems_rbtree_node *node)
 Returns the successor of a node. More...
 
RTEMS_INLINE_ROUTINE void rtems_rbtree_extract (rtems_rbtree_control *the_rbtree, rtems_rbtree_node *the_node)
 Extracts (removes) the node from the red-black tree. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_get_min (rtems_rbtree_control *the_rbtree)
 Obtain the min node on a rbtree. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_get_max (rtems_rbtree_control *the_rbtree)
 Obtain the max node on a rbtree. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_peek_min (const rtems_rbtree_control *the_rbtree)
 Peek at the min node on a rbtree. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_peek_max (const rtems_rbtree_control *the_rbtree)
 Peek at the max node on a rbtree. More...
 
RTEMS_INLINE_ROUTINE rtems_rbtree_nodertems_rbtree_insert (rtems_rbtree_control *the_rbtree, rtems_rbtree_node *the_node, rtems_rbtree_compare compare, bool is_unique)
 Inserts the node into the red-black tree. More...
 

Detailed Description

Constants and Structures Associated with the RBTree API in RTEMS.

This include file contains all the constants and structures associated with the RBTree API in RTEMS. The rbtree is a Red Black Tree that is part of the Super Core. This is the published interface to that code.