NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/cLib/c_owner_set.hpp>
A set container. See cOwnerSetNd_c.
The set is implemented as a singly-linked list.
Definition at line 24 of file c_owner_set.hpp.
Public Member Functions | |
cOwnerSetMg_c () | |
Constructs a new set container. | |
~cOwnerSetMg_c () | |
Destroys the set. | |
void | add (cOwnerSetNd_c *nd, void *owner) |
Adds a node to the set. | |
void | remove (cOwnerSetNd_c *nd, void *owner) |
Removes a node from the set. | |
Private Member Functions | |
void | clear () |
Clears out the set and unlinks all child nodes. | |
Private Attributes | |
cOwnerSetNd_c * | mpRoot |
The first element of the set. | |
|
inline |
Constructs a new set container.
Definition at line 27 of file c_owner_set.hpp.
|
inline |
Destroys the set.
Definition at line 30 of file c_owner_set.hpp.
void cOwnerSetMg_c::add | ( | cOwnerSetNd_c * | nd, |
void * | owner ) |
Adds a node to the set.
nd | The node to add. |
owner | The owner of the node. |
Definition at line 5 of file c_owner_set.cpp.
void cOwnerSetMg_c::remove | ( | cOwnerSetNd_c * | nd, |
void * | owner ) |
Removes a node from the set.
nd | The node to remove. |
owner | The owner of the node. |
Definition at line 34 of file c_owner_set.cpp.
|
private |
Clears out the set and unlinks all child nodes.
Definition at line 64 of file c_owner_set.cpp.
|
private |
The first element of the set.
Definition at line 52 of file c_owner_set.hpp.