summaryrefslogtreecommitdiff
path: root/src/SSystem/SComponent/c_tree.cpp
blob: 05086dc0dd069aefd0d023bad370a89dd33ad9fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Generated by dtk
// Translation Unit: c_tree.cpp
//

#include "SSystem/SComponent/c_tree.h"
#include "SSystem/SComponent/c_list.h"
#include "dolphin/types.h"

/* 80244FD0-80244FF0       .text cTr_SingleCut__FP10node_class */
int cTr_SingleCut(node_class* pNode) {
    return cLs_SingleCut(pNode);
}

/* 80244FF0-80245034       .text cTr_Addition__FP21node_lists_tree_classiP10node_class */
int cTr_Addition(node_lists_tree_class* pTree, int listIdx, node_class* pNode) {
    if (listIdx >= pTree->mNumLists)
        return 0;

    return cLs_Addition(&pTree->mpLists[listIdx], pNode);
}

/* 80245034-80245078       .text cTr_Insert__FP21node_lists_tree_classiP10node_classi */
int cTr_Insert(node_lists_tree_class* pTree, int listIdx, node_class* pNode, int idx) {
    if (listIdx >= pTree->mNumLists)
        return 0;

    return cLs_Insert(&pTree->mpLists[listIdx], idx, pNode);
}

/* 80245078-802450D0       .text cTr_Create__FP21node_lists_tree_classP15node_list_classi */
void cTr_Create(node_lists_tree_class* pTree, node_list_class* pLists, int numLists) {
    pTree->mpLists = pLists;
    pTree->mNumLists = numLists;

    while (numLists-- > 0)
        cLs_Create(pLists++);
}