Panda3D

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

## Public Member Functions
| Children (Children &&from) noexcept
| Children (const CData *cdata)
| Children (const Children &copy)
PandaNode * | get_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...
void | operator= (Children &&from) noexcept
void | operator= (const Children &copy)
PandaNode * | operator[] (size_t n) const
size_t | size () const

## Detailed Description

Definition at line 706 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 961 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 972 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 952 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:

- panda/src/pgraph/pandaNode.h
- panda/src/pgraph/pandaNode.I