function lfds710_btree_au_get_by_relative_position
Jump to navigation
Jump to search
Source Files
└───liblfds710 ├───inc │ └───liblfds710 │ lfds710_btree_addonly_unbalanced.h └───src └───lfds710_btree_addonly_unbalanced lfds710_btree_addonly_unbalanced_get.c
Opaque Structures
struct lfds710_btree_au_element; struct lfds710_btree_au_state;
Enums
enum lfds710_btree_au_relative_position { LFDS710_BTREE_AU_RELATIVE_POSITION_UP, LFDS710_BTREE_AU_RELATIVE_POSITION_LEFT, LFDS710_BTREE_AU_RELATIVE_POSITION_RIGHT, LFDS710_BTREE_AU_RELATIVE_POSITION_SMALLEST_ELEMENT_BELOW_CURRENT_ELEMENT, LFDS710_BTREE_AU_RELATIVE_POSITION_LARGEST_ELEMENT_BELOW_CURRENT_ELEMENT, LFDS710_BTREE_AU_RELATIVE_POSITION_NEXT_SMALLER_ELEMENT_IN_ENTIRE_TREE, LFDS710_BTREE_AU_RELATIVE_POSITION_NEXT_LARGER_ELEMENT_IN_ENTIRE_TREE };
Prototype
int lfds710_btree_au_get_by_relative_position( struct lfds710_btree_au_element **baue, enum lfds710_btree_au_relative_position relative_position );
Parameters
struct lfds710_btree_au_element **baue
- This argument is the address of a pointer to an element in a btree. Typically this pointer is initially obtained by calling lfds710_btree_au_get_by_absolute_position. This argument is then set to point to the element retrieved by the function, according to the direction argument.
enum lfds710_btree_au_relative_position relative_position
- Indicates which element *baue should be moved to, using the original element pointed to by *baue as the starting point.
Return Value
Returns 1 if a btree element was found in the given direction, 0 otherwise.
Notes
No notes.