Example #1
0
void ListItr::moveForward()
{
	if (!isPastEnd())
	{
		ListNode * tmp = current->next;
		current = tmp;
	}
	
}
Example #2
0
SpiralIterator& SpiralIterator::operator ++()
{
  pointsRing_.pop_back();
  if (pointsRing_.empty() && !isPastEnd()) generateRing();
  return *this;
}