mirror of
https://github.com/zeldaret/ss
synced 2026-05-29 16:44:44 -04:00
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
#pragma once
|
|
|
|
// This file was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_tree_nd.hpp
|
|
|
|
#include <types.h>
|
|
#include <c/c_tree.h>
|
|
#include <f/f_profile.h>
|
|
|
|
class fBase_c;
|
|
|
|
/// @brief A tree node with an owner reference.
|
|
class fTrNdBa_c : public cTreeNd_c {
|
|
public:
|
|
/// @brief Constructs a new tree node.
|
|
/// @param owner The node's owner.
|
|
fTrNdBa_c(fBase_c *owner) : mpOwner(owner) {}
|
|
|
|
fTrNdBa_c *getTreeNext() const {
|
|
return (fTrNdBa_c *) cTreeNd_c::getTreeNext();
|
|
}
|
|
|
|
fTrNdBa_c *getTreeNextNotChild() const {
|
|
return (fTrNdBa_c *) cTreeNd_c::getTreeNextNotChild();
|
|
}
|
|
|
|
fTrNdBa_c *getParent() const {
|
|
return (fTrNdBa_c *) cTreeNd_c::getParent();
|
|
}
|
|
|
|
fTrNdBa_c *getChild() const {
|
|
return (fTrNdBa_c *) cTreeNd_c::getChild();
|
|
}
|
|
|
|
fTrNdBa_c *getBrPrev() const {
|
|
return (fTrNdBa_c *) cTreeNd_c::getBrPrev();
|
|
}
|
|
|
|
fTrNdBa_c *getBrNext() const {
|
|
return (fTrNdBa_c *) cTreeNd_c::getBrNext();
|
|
}
|
|
|
|
fBase_c *mpOwner; ///< The owner of this node.
|
|
}; |