Simulant  21.09-46
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
smlt::TreeNode Class Reference
Inheritance diagram for smlt::TreeNode:
smlt::StageNode smlt::Actor smlt::ContainerNode smlt::Geom smlt::MeshInstancer smlt::ParticleSystem smlt::Camera smlt::Light smlt::Skybox smlt::Sprite smlt::Stage smlt::ui::Widget smlt::ui::Button smlt::ui::Image smlt::ui::Label smlt::ui::ProgressBar

Public Member Functions

void set_parent (TreeNode *node)
 
void add_child (TreeNode *node)
 
void remove_from_parent ()
 
bool is_root () const
 
bool is_leaf () const
 
TreeNodeparent () const
 
uint32_t child_count () const
 
TreeNodefirst_child () const
 
TreeNodenext_node () const
 
TreeNodeprevious_node () const
 

Protected Member Functions

TreeNodedetach ()
 
TreeNodelast_child () const
 
virtual void on_parent_set (TreeNode *oldp, TreeNode *newp)
 

Protected Attributes

TreeNoderoot_ = nullptr
 
TreeNodeparent_ = nullptr
 
TreeNodefirst_child_ = nullptr
 
TreeNodeprev_ = this
 
TreeNodenext_ = this
 

Friends

class DescendentIterator< false >
 
class DescendentIterator< true >
 

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