Simulant  21.12-553
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::Frame smlt::ui::Image smlt::ui::Keyboard smlt::ui::KeyboardPanel smlt::ui::Label smlt::ui::ProgressBar smlt::ui::TextEntry

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
 
TreeNodechild_at (std::size_t i) 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 >
 

Member Function Documentation

◆ child_at()

TreeNode* smlt::TreeNode::child_at ( std::size_t  i) const
inline

Iterates the child nodes to return the one at index i


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