Files
ss/include/f/f_tree_mg_ptmf.h
T
Elijah Thomas 26af4db82d update from dtk-template - clangd :) (#66)
* update from dtk-template and start work towards using clangd

* include <a> -> "a"

* Update build.yml

* remove/add non-trivial class in union warning
2024-10-16 15:36:02 -04:00

31 lines
871 B
C++

#ifndef F_TREE_MANAGER_FUNC_H
#define F_TREE_MANAGER_FUNC_H
// This file was ported from
// https://github.com/NSMBW-Community/NSMBW-Decomp/blob/master/include/dol/framework/f_tree_mg_ptmf.hpp
#include "c/c_tree.h"
#include "common.h"
#include "f/f_tree_mg.h"
class fBase_c;
/// @brief A container for a tree of fTrNdBa_c nodes with a reference to a process function.
/// @note Unofficial name.
class fTrMgPTMF_c : public fTrMgBa_c {
public:
/// @brief Constructs a new tree container.
/// @param procFunc The process function.
fTrMgPTMF_c(int (fBase_c::*procFunc)()) : mpProcFunc(procFunc) {}
/// @brief Calls the process function ::mpProcFunc on the owner of each node in the tree.
/// @return If the operation was successful.
bool walkPack();
private:
int (fBase_c::*mpProcFunc)(); ///< The process function for the tree.
};
#endif