src/cx/tree.h

changeset 1692
56731bb98508
parent 1690
7d41291b3095
equal deleted inserted replaced
1691:5e608d0e5bd1 1692:56731bb98508
57 * The next element in the queue or @c NULL. 57 * The next element in the queue or @c NULL.
58 */ 58 */
59 struct cx_tree_visitor_queue_s *next; 59 struct cx_tree_visitor_queue_s *next;
60 }; 60 };
61 61
62 /**
63 * An iterator (DFS) or visitor (BFS) for a tree.
64 */
62 typedef struct cx_tree_combined_iterator_s { 65 typedef struct cx_tree_combined_iterator_s {
63 /** 66 /**
64 * Base members. 67 * Base members.
65 */ 68 */
66 CX_ITERATOR_BASE; 69 CX_ITERATOR_BASE;
332 335
333 /** 336 /**
334 * Structure for holding the base data of a tree. 337 * Structure for holding the base data of a tree.
335 */ 338 */
336 typedef struct cx_tree_s { 339 typedef struct cx_tree_s {
340 /** Base attributes. */
337 CX_COLLECTION_BASE; 341 CX_COLLECTION_BASE;
338 /** 342 /**
339 * A pointer to the root node. 343 * A pointer to the root node.
340 * 344 *
341 * Will be @c NULL when @c size is 0. 345 * Will be @c NULL when @c size is 0.

mercurial