void TextPlacementDelegator::resetState()
{
   // The first call to moveToNextString will have to initialize
   // m_impl->currentTextIndexInMap to 0 in order to process the
   // first text item, and -1 + 1 == 0.
   
   m_impl->textIndexCur = -1;
   m_impl->mapItCur = m_impl->mapItBegin;
   deleteAndClear(m_impl->textResults);
   m_impl->curPolicy->resetViewport();
   m_impl->overlapDetector.clear();
   m_impl->placedTexts.clear();
}
Beispiel #2
0
void BasicExpression::clearVars() {
    deleteAndClear(varmap);
    funcmap.clear();
}