NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
f_list_nd.hpp
1#pragma once
2#include <types.h>
3#include <game/cLib/c_list.hpp>
4
5class fBase_c;
6
7/// @brief A base list node.
8/// @details Each node is owned by a @ref fBase_c "base" and represents it in the @ref fLiMgBa_c "list".
9/// @ingroup framework
10/// @unofficial
11class fLiNdBa_c : public cListNd_c {
12public:
13
14 /// @brief Constructs a new list node.
15 /// @param owner The node's owner.
16 fLiNdBa_c(fBase_c *owner) : mpOwner(owner) {}
17
18 inline fLiNdBa_c *getPrev() const {
19 return (fLiNdBa_c *) cListNd_c::getPrev();
20 }
21
22 inline fLiNdBa_c *getNext() const {
23 return (fLiNdBa_c *) cListNd_c::getNext();
24 }
25
26 /// @brief Removes this node from the owner's @ref fBase_c::mUnusedList "mUnusedList".
27 /// @unofficial
28 /// @decompnote{Might not actually belong to this class (XOR trick on hash).}
29 void removeSelf();
30
31 fBase_c *mpOwner; ///< The owner of this node.
32};
cListNd_c()
Constructs a new list node.
Definition c_list.hpp:10
The base class for all scenes, actors and various other processes.
Definition f_base.hpp:119
A base list node.
Definition f_list_nd.hpp:11
void removeSelf()
Removes this node from the owner's mUnusedList.
Definition f_list.cpp:73
fBase_c * mpOwner
The owner of this node.
Definition f_list_nd.hpp:31
fLiNdBa_c(fBase_c *owner)
Constructs a new list node.
Definition f_list_nd.hpp:16