Files
ss/include/f/f_list_nd.h
T
lepelog 42880ec9ae init
2023-08-09 16:59:04 +02:00

32 lines
889 B
C++

#pragma once
// This file was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_list_nd.hpp
#include <types.h>
#include <c/c_list.h>
class fBase_c;
/// @brief A list node with an owner reference.
/// @note Unofficial name.
class fLiNdBa_c : public cListNd_c {
public:
/// @brief Constructs a new list node.
/// @param owner The node's owner.
fLiNdBa_c(fBase_c *owner) : mpOwner(owner) {}
inline fLiNdBa_c *getPrev() const {
return (fLiNdBa_c *) cListNd_c::getPrev();
}
inline fLiNdBa_c *getNext() const {
return (fLiNdBa_c *) cListNd_c::getNext();
}
/// @brief Removes this node from the owner's fBase_c::mUnusedList.
/// @note Unofficial name. Might not actually belong to this class (xor trick on hash).
void removeSelf();
fBase_c *mpOwner; ///< The owner of this node.
};