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

Method operator++

Engine/source/console/simSet.cpp:587–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected