#include <SgUctTree.h>
It was intentionally implemented to be used only, if at least one child exists (checked with an assertion), since in many use cases, the case of no children needs to be handled specially and should be checked before doing a loop over all children.
Definition at line 1017 of file SgUctTree.h.
Public Member Functions | |
SgUctChildIterator (const SgUctTree &tree, const SgUctNode &node) | |
Constructor. | |
const SgUctNode & | operator * () const |
void | operator++ () |
operator bool () const | |
Private Attributes | |
const SgUctNode * | m_current |
const SgUctNode * | m_last |
Constructor.
Requires: node.HasChildren()
Definition at line 1037 of file SgUctTree.h.
References SgUctTree::Contains(), SgUctNode::FirstChild(), SgUctNode::HasChildren(), m_current, m_last, SgUctNode::NuChildren(), SG_ASSERT, and SG_DEBUG_ONLY.
const SgUctNode & SgUctChildIterator::operator * | ( | ) | const |
SgUctChildIterator::operator bool | ( | ) | const |
void SgUctChildIterator::operator++ | ( | ) |
const SgUctNode* SgUctChildIterator::m_current [private] |
Definition at line 1032 of file SgUctTree.h.
Referenced by operator *(), operator bool(), operator++(), and SgUctChildIterator().
const SgUctNode* SgUctChildIterator::m_last [private] |
Definition at line 1034 of file SgUctTree.h.
Referenced by operator bool(), and SgUctChildIterator().