Panda3D
Public Member Functions | List of all members
PandaNode::Children Class Reference

Public Member Functions

 Children (const CData *cdata)
 
 Children (const Children &copy)
 
 Children (Children &&from) noexcept
 
PandaNodeget_child (size_t n) const
 Returns the nth child of the node. More...
 
int get_child_sort (size_t n) const
 Returns the sort index of the nth child node of this node (that is, the number that was passed to add_child()). More...
 
size_t get_num_children () const
 Returns the number of children of the node. More...
 
PandaNodeoperator [] (size_t n) const
 
void operator= (const Children &copy)
 
void operator= (Children &&from) noexcept
 
size_t size () const
 

Detailed Description

Definition at line 708 of file pandaNode.h.

Member Function Documentation

◆ get_child()

PandaNode * PandaNode::Children::get_child ( size_t  n) const
inline

Returns the nth child of the node.

Definition at line 962 of file pandaNode.I.

◆ get_child_sort()

int PandaNode::Children::get_child_sort ( size_t  n) const
inline

Returns the sort index of the nth child node of this node (that is, the number that was passed to add_child()).

See get_num_children().

Definition at line 973 of file pandaNode.I.

◆ get_num_children()

size_t PandaNode::Children::get_num_children ( ) const
inline

Returns the number of children of the node.

Definition at line 953 of file pandaNode.I.

Referenced by RigidBodyCombiner::collect(), PandaNode::copy_children(), and DataGraphTraverser::traverse_below().


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