2023-12-25 07:31:05 -08:00
|
|
|
/**
|
|
|
|
|
* c_tree.cpp
|
|
|
|
|
*
|
|
|
|
|
*/
|
2020-11-30 14:26:55 -08:00
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
#include "SSystem/SComponent/c_tree.h"
|
2023-05-12 12:10:14 -07:00
|
|
|
#include "SSystem/SComponent/c_list.h"
|
2020-11-30 14:26:55 -08:00
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 80266440-80266460 0020+00 s=0 e=1 z=0 None .text cTr_SingleCut__FP10node_class */
|
2023-12-25 07:31:05 -08:00
|
|
|
int cTr_SingleCut(node_class* node) {
|
|
|
|
|
return cLs_SingleCut(node);
|
2020-11-30 14:26:55 -08:00
|
|
|
}
|
|
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 80266460-802664A4 0044+00 s=0 e=1 z=0 None .text
|
|
|
|
|
* cTr_Addition__FP21node_lists_tree_classiP10node_class */
|
2023-12-25 07:31:05 -08:00
|
|
|
int cTr_Addition(node_lists_tree_class* tree, int listIdx, node_class* node) {
|
|
|
|
|
if (listIdx >= tree->mNumLists)
|
2021-03-30 02:45:32 +02:00
|
|
|
return 0;
|
|
|
|
|
|
2023-12-25 07:31:05 -08:00
|
|
|
return cLs_Addition(&tree->mpLists[listIdx], node);
|
2020-11-30 14:26:55 -08:00
|
|
|
}
|
|
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 802664A4-802664E8 0044+00 s=0 e=1 z=0 None .text
|
|
|
|
|
* cTr_Insert__FP21node_lists_tree_classiP10node_classi */
|
2023-12-25 07:31:05 -08:00
|
|
|
int cTr_Insert(node_lists_tree_class* tree, int listIdx, node_class* node, int idx) {
|
|
|
|
|
if (listIdx >= tree->mNumLists)
|
2021-03-30 02:45:32 +02:00
|
|
|
return 0;
|
|
|
|
|
|
2023-12-25 07:31:05 -08:00
|
|
|
return cLs_Insert(&tree->mpLists[listIdx], idx, node);
|
2020-11-30 14:26:55 -08:00
|
|
|
}
|
|
|
|
|
|
2021-03-29 00:10:25 +02:00
|
|
|
/* 802664E8-80266540 0058+00 s=0 e=2 z=0 None .text
|
|
|
|
|
* cTr_Create__FP21node_lists_tree_classP15node_list_classi */
|
2023-12-25 07:31:05 -08:00
|
|
|
void cTr_Create(node_lists_tree_class* tree, node_list_class* lists, int numLists) {
|
|
|
|
|
tree->mpLists = lists;
|
|
|
|
|
tree->mNumLists = numLists;
|
2021-03-30 02:45:32 +02:00
|
|
|
|
|
|
|
|
while (numLists-- > 0)
|
2023-12-25 07:31:05 -08:00
|
|
|
cLs_Create(lists++);
|
2020-11-30 14:26:55 -08:00
|
|
|
}
|