void SimpleStageBase::assignForegrounds(const MFUnrecForegroundPtr &value) { MFUnrecForegroundPtr::const_iterator elemIt = value.begin(); MFUnrecForegroundPtr::const_iterator elemEnd = value.end (); static_cast<SimpleStage *>(this)->clearForegrounds(); while(elemIt != elemEnd) { this->pushToForegrounds(*elemIt); ++elemIt; } }
void ViewportBase::assignForegrounds(const MFUnrecForegroundPtr &value) { MFUnrecForegroundPtr::const_iterator elemIt = value.begin(); MFUnrecForegroundPtr::const_iterator elemEnd = value.end (); static_cast<Viewport *>(this)->clearForegrounds(); while(elemIt != elemEnd) { this->addForeground(*elemIt); ++elemIt; } }