Couch
Public Member Functions | Friends | List of all members
NodeList Class Reference

#include <Node.h>

Inheritance diagram for NodeList:
Inheritance graph
[legend]
Collaboration diagram for NodeList:
Collaboration graph
[legend]

Public Member Functions

 NodeList (bool isPrefabList)
 
void Append (Node *node)
 
void Remove (Node *node)
 
int Length ()
 
bool IsPrefabList ()
 
void FreeList ()
 

Friends

class Node
 

Detailed Description

A list of nodes, tagged as either a list of prefabs or a list of instanced nodes.

Member Function Documentation

◆ Append()

void NodeList::Append ( Node node)

Add a node to this list, will check if it is a prefab or an instance.

Parameters
nodeThe node to add

◆ FreeList()

void NodeList::FreeList ( )

Recursively frees all nodes in the list

◆ IsPrefabList()

bool NodeList::IsPrefabList ( )

Whether or not this is a list of prefabs

Returns
true if this is a prefab list, false if it is an instanced list.

◆ Length()

int NodeList::Length ( )

Check how many children this node has

Returns
The number of children of this node

◆ Remove()

void NodeList::Remove ( Node node)

Remove a node from this list

Parameters
nodeThe node to remove

The documentation for this class was generated from the following files: