MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / operator++

Method operator++

Engine/source/console/simSet.cpp:585–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583//-----------------------------------------------------------------------------
584
585SimObject* SimSetIterator::operator++()
586{
587 SimSet* set;
588 if ((set = dynamic_cast<SimSet*>(*stack.last().itr)) != 0)
589 {
590 if (!set->empty())
591 {
592 stack.push_back(set);
593 return *stack.last().itr;
594 }
595 }
596
597 while (++stack.last().itr == stack.last().set->end())
598 {
599 stack.pop_back();
600 if (stack.empty())
601 return 0;
602 }
603 return *stack.last().itr;
604}
605
606//=============================================================================
607// SimGroup.

Callers

nothing calls this directly

Calls 5

lastMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45
endMethod · 0.45
pop_backMethod · 0.45

Tested by

no test coverage detected