#include "tree2_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Go to the source code of this file.
◆ DISABLE_DEBUGLOG
◆ GWEN_Tree2_AddChild()
Add a child below the given element.
Definition at line 122 of file tree2.c.
References NULL.
◆ GWEN_Tree2_InsertChild()
Insert a child below the given element.
Definition at line 137 of file tree2.c.
References NULL.
◆ GWEN_Tree2_Replace()
Replaces a tree element with another one, so the replacement takes the place of the given element. The given element to replace is unlinked in the process and can be free'd. The replacement MUST NOT be part of any tree.
Definition at line 90 of file tree2.c.
References NULL.
◆ GWEN_Tree2_Unlink()
Unlinks (removes) a tree element from the tree it used to belong to. The tree element is not free'd or anything, it is only removed from the tree it used to belong to. (This operation is also called "remove" elsewhere.)
Definition at line 64 of file tree2.c.
References NULL.
◆ GWEN_Tree2Element_free()
◆ GWEN_Tree2Element_GetBelow()
Returns the element which is logically below the given one. The order of search is this:
-
first child of the given element
-
next neighbour of the given element
-
loop for every parent: check next neighbour of the given element's parent (if any)
Definition at line 168 of file tree2.c.
References NULL.
◆ GWEN_Tree2Element_GetFirstChild()
Returns the first child of the given element.
Definition at line 189 of file tree2.c.
References NULL.
◆ GWEN_Tree2Element_GetLastChild()
Returns the last child of the given element.
Definition at line 198 of file tree2.c.
References NULL.
◆ GWEN_Tree2Element_GetNext()
Returns the data pointer of the list element that is the next one (successor) to the given one in its list. If there is no such prepending list element, returns NULL.
Definition at line 159 of file tree2.c.
◆ GWEN_Tree2Element_GetParent()
◆ GWEN_Tree2Element_GetPrevious()
Returns the data pointer of the list element that is the previous (predecessor) to the given one in its list. If there is no such prepending list element, returns NULL.
Definition at line 150 of file tree2.c.
◆ GWEN_Tree2Element_new()