NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
cOwnerSetMg_c Class Reference

#include <game/cLib/c_owner_set.hpp>

Inheritance diagram for cOwnerSetMg_c:
[legend]

Description

A set container. See cOwnerSetNd_c.

The set is implemented as a singly-linked list.

Unofficial name.

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_cmpRoot
 The first element of the set.
 

Constructor & Destructor Documentation

◆ cOwnerSetMg_c()

cOwnerSetMg_c::cOwnerSetMg_c ( )
inline

Constructs a new set container.

Definition at line 27 of file c_owner_set.hpp.

◆ ~cOwnerSetMg_c()

cOwnerSetMg_c::~cOwnerSetMg_c ( )
inline

Destroys the set.

Definition at line 30 of file c_owner_set.hpp.

Member Function Documentation

◆ add()

void cOwnerSetMg_c::add ( cOwnerSetNd_c * nd,
void * owner )

Adds a node to the set.

Parameters
ndThe node to add.
ownerThe owner of the node.

Definition at line 5 of file c_owner_set.cpp.

◆ remove()

void cOwnerSetMg_c::remove ( cOwnerSetNd_c * nd,
void * owner )

Removes a node from the set.

Parameters
ndThe node to remove.
ownerThe owner of the node.

Definition at line 34 of file c_owner_set.cpp.

◆ clear()

void cOwnerSetMg_c::clear ( )
private

Clears out the set and unlinks all child nodes.

Definition at line 64 of file c_owner_set.cpp.

Member Data Documentation

◆ mpRoot

cOwnerSetNd_c* cOwnerSetMg_c::mpRoot
private

The first element of the set.

Definition at line 52 of file c_owner_set.hpp.