|
taskrambler
0.1.8
Web server and task management solution.
|
#include "tree.h"
Include dependency graph for insert.c:Go to the source code of this file.
Functions | |
| void | treeRotateLeft (Tree *, Tree) |
| void | treeRotateRight (Tree *, Tree) |
| void * | treeInsert (Tree *this, const void *search, TreeComp comp) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file insert.c.
| void* treeInsert | ( | Tree * | this, |
| const void * | search, | ||
| TreeComp | comp | ||
| ) |
Definition at line 29 of file insert.c.
References comp(), rbBlack, rbRed, TREE_GRANDPARENT, TREE_LEFT, TREE_PARENT, TREE_RIGHT, TREE_UNCLE, treeRotateLeft(), and treeRotateRight().
Referenced by hashAdd(), and main().
Here is the call graph for this function:
Here is the caller graph for this function:| void treeRotateLeft | ( | Tree * | , |
| Tree | |||
| ) |
Definition at line 26 of file rotateLeft.c.
References TREE_PARENT, TREE_RIGHT, and TREE_RIGHT_LEFT.
Referenced by treeInsert().
Here is the caller graph for this function:| void treeRotateRight | ( | Tree * | , |
| Tree | |||
| ) |
Definition at line 26 of file rotateRight.c.
References TREE_LEFT, TREE_LEFT_RIGHT, and TREE_PARENT.
Referenced by treeInsert().
Here is the caller graph for this function: