NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
c_owner_set.hpp
Go to the documentation of this file.
1#pragma once
2#include <types.h>
4
9public:
10 void *getOwner() const { return mpOwner; }
11 cOwnerSetNd_c *getNext() const { return mpNext; }
12
13private:
14 void* mpOwner;
16
17 friend class cOwnerSetMg_c;
18};
19
25public:
27 cOwnerSetMg_c() : mpRoot(nullptr) {}
28
31
38 void add(cOwnerSetNd_c *nd, void *owner);
39
46 void remove(cOwnerSetNd_c *nd, void *owner);
47
48private:
50 void clear();
51
53};
54
58void UNK_80161880();
A set container. See cOwnerSetNd_c.
void add(cOwnerSetNd_c *nd, void *owner)
Adds a node to the set.
cOwnerSetMg_c()
Constructs a new set container.
void clear()
Clears out the set and unlinks all child nodes.
void remove(cOwnerSetNd_c *nd, void *owner)
Removes a node from the set.
cOwnerSetNd_c * mpRoot
The first element of the set.
~cOwnerSetMg_c()
Destroys the set.
A set node with a pointer to the owning container. See cOwnerSetMg_c.
void * mpOwner
The set that contains this node.
cOwnerSetNd_c * mpNext
The next node in the set.
void UNK_80161880()
[Looks like a badly stripped assert].