function lfds710_btree_au_get_by_absolute_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_absolute_position { LFDS710_BTREE_AU_ABSOLUTE_POSITION_ROOT, LFDS710_BTREE_AU_ABSOLUTE_POSITION_SMALLEST_IN_TREE, LFDS710_BTREE_AU_ABSOLUTE_POSITION_LARGEST_IN_TREE };
Prototypes
int lfds710_btree_au_get_by_absolute_position( struct lfds710_btree_au_state *baus, struct lfds710_btree_au_element **baue, enum lfds710_btree_au_absolute_position absolute_position );
Parameters
struct lfds710_btree_au_state *baus
- A pointer to an initialized lfds710_btree_au_state.
struct lfds710_btree_au_element **baue
- Set to point to the element specified by position.
enum lfds710_btree_au_absolute_position absolute_position
- Indicates which element to retrieve from the tree.
Return Value
Returns 1 if a btree element was found at the given position, 0 otherwise (i.e. the and the only time 0 is returned is when the btree is empty).
Notes
No notes.