Files
ss/include/f/f_list_mg.h
T
2023-10-06 07:49:50 -04:00

36 lines
1.0 KiB
C++

#pragma once
// This file was ported from https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_list_mg.hpp
#include "types.h"
#include "f/f_profile.h"
#include "c/c_list.h"
#include "f/f_base_id.h"
#include "f/f_list_nd.h"
class fBase_c;
/// @brief A list of fLiNdBa_c nodes.
class fLiMgBa_c : public cListMg_c {
public:
/**
* @brief Counts the number of nodes of a given profile in this list.
*
* @param profName The profile name.
* @return How many nodes were found.
*/
int countNodeByProfName(ProfileName profName) const;
/* 802e2760 */ const fLiNdBa_c *searchNodeByID(fBaseID_e id) const;
/* 802e2790 */ const fLiNdBa_c *searchNodeByID(fBaseID_e id, fLiMgBa_c* start) const;
/* 802e27d0 */ void link(fLiNdBa_c&, fBase_c*);
/* 802e2830 */ void unlink(fLiNdBa_c&);
inline fLiNdBa_c *getFirst() const {
return (fLiNdBa_c *) cListMg_c::getFirst();
}
inline fLiNdBa_c *getLast() const {
return (fLiNdBa_c *) cListMg_c::getLast();
}
};