/** The purpose of this iterator is to be able to iterate threw an infinite element tree *infinite->asmuchasyourmemorycanhold *Nocall-backsthatwillendupinoutofstack
*/
// Append data
aCopyTree->setSubElement(aCopyTree->getSubElementsCount(), aNewSmMlElement);
// Prepare for following // If it has sub elements, then it will be the next if (aSmMlElement->getSubElementsCount() != 0)
aCopyTree = aNewSmMlElement; else// Otherwise remounts up to where it should be
{ while (aSmMlElement->getParentElement() != nullptr)
{ // get parent
SmMlElement* pParent = aSmMlElement->getParentElement();
aCopyTree = aCopyTree->getParentElement(); // was this the last branch ? if (aSmMlElement->getSubElementId() + 1 != pParent->getSubElementsCount()) break; // no -> stop going up // Prepare for next round
aSmMlElement = pParent;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.