2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
22 .Nd get the first, next, previous, and last entries from an AVL tree
28 .Fa "avl_tree_t *tree"
32 .Fa "avl_tree_t *tree"
36 .Fa "avl_tree_t *tree"
41 .Fa "avl_tree_t *tree"
49 respectively return the first and last entry in the tree specified by
51 Order in the tree is determined by the comparison function that was
52 specified at the time the tree was created with
67 functions are macros that may be used to obtain the next and previous
72 If there is no next or previous node, for example, if one was at the
73 beginning or end of the tree, then
77 These constructs are generally used as part of loops to iterate the
79 See the examples section in
81 for more information on using this
86 function returns a pointer to the first entry in the AVL tree
90 if the AVL tree is empty.
94 function returns a pointer to the last entry in the AVL tree
98 if the AVL tree is empty.
102 macro returns a pointer to the object in the tree that follows
106 is the last entry in the tree,
112 macro returns a pointer to the object in the tree that precedes
116 is the first entry in the tree,
124 .Sh INTERFACE STABILITY
132 .Xr avl_create 3AVL ,