function lfds711_btree_au_get_by_absolute_position
Jump to navigation
Jump to search
Source Files
└───liblfds711 ├───inc │ └───liblfds711 │ lfds711_btree_addonly_unbalanced.h └───src └───lfds711_btree_addonly_unbalanced lfds711_btree_addonly_unbalanced_get.c
Opaque Structures
struct lfds711_btree_au_element; struct lfds711_btree_au_state;
Enums
enum lfds711_btree_au_absolute_position { LFDS711_BTREE_AU_ABSOLUTE_POSITION_ROOT, LFDS711_BTREE_AU_ABSOLUTE_POSITION_SMALLEST_IN_TREE, LFDS711_BTREE_AU_ABSOLUTE_POSITION_LARGEST_IN_TREE };
Prototypes
int lfds711_btree_au_get_by_absolute_position( struct lfds711_btree_au_state *baus, struct lfds711_btree_au_element **baue, enum lfds711_btree_au_absolute_position absolute_position );
Parameters
struct lfds711_btree_au_state *baus
- A pointer to an initialized lfds711_btree_au_state.
struct lfds711_btree_au_element **baue
- Set to point to the element specified by position.
enum lfds711_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.