ManaPlus
Macros
foreach.h File Reference

(dc3c359)

Go to the source code of this file.

Macros

#define FOR_EACH(type, iter, array)
 
#define FOR_EACHR(type, iter, array)
 
#define FOR_EACHP(type, iter, array)
 
#define FOR_EACH_SAFE(type, iter, array)
 

Macro Definition Documentation

◆ FOR_EACH

#define FOR_EACH (   type,
  iter,
  array 
)
Value:
for (type iter = array.begin(), \
iter##_fend = array.end(); iter != iter##_fend; ++ iter)

Definition at line 24 of file foreach.h.

Referenced by TabStrip::action(), SetupWindow::action(), EditDialog::action(), ShopWindow::action(), NpcDialog::action(), PopupMenu::addBeingMenu(), InputManager::addChatCommands(), ComplexItem::addChild(), ChatWindow::addCurrentToHistory(), addFieldByName(), Being::addItemParticles(), Being::addItemParticlesCards(), SpecialLayer::addRoad(), BrowserBox::addRow(), SkillDialog::addSkillDuration(), ServerInfoWindow::addSourcesList(), StatusWindow::addTabs(), WindowContainer::adjustAfterResize(), Particle::adjustEmitterSize(), Palette::advanceGradients(), ShopWindow::announce(), applyEffectByOption(), applyEffectByOption1(), BuyDialog::applyNameFilter(), EAthena::CashShopHandler::buyItems(), EAthena::MarketHandler::buyItems(), EAthena::VendingHandler::buyItems(), EAthena::NpcHandler::buyItems(), BrowserBox::calcHeight(), AtlasResource::calcMemoryChilds(), TextureAtlas::calcMemoryChilds(), Action::calcMemoryChilds(), SpriteDef::calcMemoryChilds(), Map::calcMemoryChilds(), ResourceManager::calcMemoryChilds(), SpriteDef::calcMemoryLocal(), Animation::calcMemoryLocal(), ResourceManager::calcMemoryLocal(), LocalPlayer::changeEquipmentBeforeAttack(), NpcDialog::choiceRequest(), ExtendedNamesModel::clear(), EffectManager::clear(), TouchManager::clear(), BasicContainer::clear(), Being::clearGuilds(), ParticleList::clearLocally(), ResourceManager::clearScheduled(), BuySellDialog::closeAll(), SellDialog::closeAll(), BuyDialog::closeAll(), NpcDialog::closeAll(), UserPalette::commit(), AtlasManager::convertAtlas(), AtlasManager::convertEmptyAtlas(), EAthena::BuyingStoreHandler::create(), createGuiWindows(), ParticleEmitter::createParticles(), AtlasManager::createSDLAtlas(), EAthena::VendingHandler::createShop(), NpcDialog::createSkinControls(), VirtFs::deinit(), Cpu::detect(), Widget::distributeActionEvent(), ArrowsListener::distributeEvent(), BankListener::distributeEvent(), BuyingStoreModeListener::distributeEvent(), BuyingStoreSlotsListener::distributeEvent(), GameModifierListener::distributeEvent(), PlayerDeathListener::distributeEvent(), UpdateStatusListener::distributeEvent(), VendingModeListener::distributeEvent(), VendingSlotsListener::distributeEvent(), DebugMessageListener::distributeEvent(), AttributeListener::distributeEvent(), StatListener::distributeEvent(), Widget::distributeHiddenEvent(), Gui::distributeKeyEvent(), Gui::distributeKeyEventToGlobalKeyListeners(), Gui::distributeMouseEvent(), Widget::distributeMovedEvent(), Widget::distributeResizedEvent(), Widget::distributeShownEvent(), Inventory::distributeSlotsChangedEvent(), ItemContainer::distributeValueChangedEvent(), ListBox::distributeValueChangedEvent(), Widget::distributeWindowResizeEvent(), ChatWindow::doPresent(), Actions::doSit(), UpdaterWindow::download(), EmotePage::draw(), TextManager::draw(), EquipmentWindow::draw(), Map::draw(), StaticBrowserBox::draw(), BrowserBox::draw(), TouchManager::draw(), Minimap::draw2(), BasicContainer::drawChildren(), Viewport::drawPath(), CompoundSprite::drawSprites(), CompoundSprite::drawSpritesSDL(), TouchManager::drawText(), DyePalette::DyePalette(), VirtFs::FsZip::enumerate(), VirtFs::FsDir::enumerate(), VirtFs::enumerateFiles(), VirtFs::exists(), VirtFs::FsZip::exists(), SetupWindow::externalUnload(), SetupWindow::externalUpdate(), NamesModel::fillFromVector(), Theme::fillSoundsList(), SpellManager::fillSpells(), MobileOpenGL2Graphics::finalize(), ModernOpenGLGraphics::finalize(), findI(), ActorManager::findNearestLivingBeing(), SpriteDef::findNumber(), Map::findPortalXY(), ShopWindow::findShopItem(), SpriteDef::fixDeadAction(), IPC::flush(), Logger::flush(), NpcDialog::getActive(), Being::getCacheEntry(), CompoundSprite::getCurrentFrame(), VirtFs::getDirs(), VirtFs::FsZip::getDirs(), VirtFs::FsDir::getDirs(), VirtFs::getFiles(), VirtFs::FsZip::getFiles(), VirtFs::FsDir::getFiles(), VirtFs::getFilesInDir(), VirtFs::getFilesWithDir(), VirtFs::FsZip::getFilesWithDir(), VirtFs::FsDir::getFilesWithDir(), InventoryWindow::getFirstVisible(), CompoundSprite::getFrameCount(), Being::getGuild(), CompoundSprite::getHeight(), ItemDB::getNamesStr(), ItemPopup::getOptionsString(), getPicturesDir(), WhoIsOnline::getPlayerNames(), PlayerRelationsManager::getPlayers(), PlayerRelationsManager::getPlayersByRelation(), VirtFs::FsZip::getRealDir(), VirtFs::getRealDir(), ActorSprite::getStatusEffectsString(), StaticBrowserBox::getTextAtPos(), BrowserBox::getTextAtPos(), Wallpaper::getWallpaper(), CompoundSprite::getWidth(), ShopWindow::giveList(), Gui::handleModalFocusReleased(), Gui::handleMouseMoved(), KeyboardConfig::handleRepeat(), Joystick::handleRepeat(), SkillDialog::hideSkills(), SetupWindow::hideWindows(), IconsModel::IconsModel(), Map::indexTilesets(), PlayerRelationsManager::init(), CompoundSprite::initCurrentCacheItem(), AtlasManager::injectToResources(), InventoryWindow::isAnyInputFocused(), NpcDialog::isAnyInputFocused(), VirtFs::isDirectory(), VirtFs::FsZip::isDirectory(), TabbedArea::isTabPresent(), ItemsModal::ItemsModal(), ColorDB::load(), ItemDB::load(), SpriteDef::loadAnimation(), loadDB(), UpdaterWindow::loadDirMods(), AtlasManager::loadEmptyAtlas(), AtlasManager::loadEmptyImages(), VirtFs::FsZip::loadFile(), VirtFs::loadFile(), AtlasManager::loadImages(), TranslationManager::loadLang(), WhoIsOnline::loadList(), Setup_Mods::loadMods(), HelpWindow::loadTags(), AtlasManager::loadTextureAtlas(), Wallpaper::loadWallpapers(), WhoIsOnline::loadWebList(), ActorSprite::logic(), EffectManager::logic(), ActorManager::logic(), BasicContainer::logicChildren(), ResourceManager::logResources(), EAthena::InventoryHandler::mergeItemsAck(), Particle::moveBy(), AtlasManager::moveToDeleted(), BasicContainer::moveToTop(), TabStrip::nextTab(), VirtFs::openAppend(), VirtFs::openRead(), VirtFs::FsZip::openRead(), VirtFs::openWrite(), ParticleEmitter::operator=(), parseInherit(), CompoundSprite::play(), ChatWindow::postConnection(), SetupWindow::postInit(), BeingPopup::postInit(), Map::preCacheLayers(), Particle::prepareToDie(), TabStrip::prevTab(), ActorManager::printBeingsToChat(), EAthena::BeingRecv::processBeingChangeLookCards(), EAthena::InventoryRecv::processCartInfo(), TouchManager::processEvent(), Ea::InventoryRecv::processPlayerStorageStatus(), EAthena::LoginRecv::processUpdateHost2(), MapDB::readAtlas(), readFields(), BeingCommon::readWalkingAttributes(), QuestsWindow::rebuild(), Being::recalcSpritesOrder(), Being::recreateItemParticles(), Map::reduce(), MailWindow::refreshMailNames(), EAthena::Network::registerFakeHandlers(), BasicContainer::remove(), FocusHandler::remove(), ChatWindow::removeAllChannels(), Being::removeAllItemsParticles(), ChatWindow::removeAllWhispers(), DelayedManager::removeDelayLoad(), Being::removeItemParticles(), Configuration::removeListener(), Configuration::removeListeners(), MailWindow::removeMail(), TextManager::removeText(), replaceItemLinks(), replaceVars(), CompoundSprite::reset(), TouchManager::resize(), Inventory::restoreVirtuals(), InputManager::retrieve(), TranslationManager::reverseLang(), UserPalette::rollback(), EmotePage::safeDraw(), TouchManager::safeDraw(), BasicContainer::safeDrawChildren(), MiniStatusWindow::saveBars(), WindowMenu::saveButtons(), ServerDialog::saveCustomServers(), ShopWindow::saveList(), Setup_Mods::saveMods(), HelpWindow::search(), VirtFs::searchAndAddArchives(), VirtFs::searchAndRemoveArchives(), VirtFs::searchByRootInternal(), VirtFs::searchByTypeInternal(), EAthena::NpcHandler::sellItems(), CompoundSprite::setAlpha(), CharSelectDialog::setCharacters(), Map::setDrawLayersFlags(), BasicContainer::setFocusHandler(), Widget::setGlobalFont(), Being::setHorse(), BasicContainer::setInternalFocusHandler(), Action::setLastFrameDelay(), TabbedArea::setSelectedTabByName(), CompoundSprite::setSpriteDirection(), ActorSprite::setupSpriteDisplay(), Configuration::setValue(), EmoteWindow::show(), BeingPopup::show(), PopupMenu::showChangePos(), PopupMenu::showPopup(), QuestsWindow::showQuest(), PopupMenu::showWindowsPopup(), PlayerRelationsManager::signalUpdate(), StatsPage::StatsPage(), StatsPageBasic::StatsPageBasic(), SpriteDef::substituteAction(), TouchActionsModel::TouchActionsModel(), EffectManager::trigger(), EffectManager::triggerReturn(), ActorManager::undelete(), GroupDb::unload(), NpcDialogDB::unload(), HorseDB::unload(), EmoteDB::unload(), UpdaterWindow::unloadMods(), MapReader::unloadTempLayers(), TouchManager::unloadTouchItem(), VirtFs::unmountDirInternal(), VirtFs::unmountZip(), VirtFs::unmountZip2(), SetupWindow::unregisterWindowForReset(), TileAnimation::update(), CompoundSprite::update(), SkillDialog::update(), Map::update(), Theme::updateAlpha(), Map::updateAmbientLayers(), MiniStatusWindow::updateBars(), WindowMenu::updateButtons(), Map::updateConditionLayers(), QuestsWindow::updateEffects(), CompoundSprite::updateFromCache(), StaticBrowserBox::updateHeight(), InputManager::updateKeyActionMap(), ShopItems::updateList(), UpdateListModel::UpdateListModel(), ItemContainer::updateMatrix(), SkillDialog::updateModels(), CompoundSprite::updateNumber(), MapLayer::updateOGL(), ChatWindow::updateOnline(), ActorManager::updateSeenPlayers(), Particle::updateSelf(), TabbedArea::updateTabsWidth(), SkillModel::updateVisibilities(), WhoIsOnline::updateWindow(), MailWindow::viewNext(), MailWindow::viewPrev(), ShortcutWindow::widgetMoved(), VertContainer::widgetResized(), SetupWindow::widgetResized(), ConfigurationObject::writeToXML(), ActorSprite::~ActorSprite(), AtlasResource::~AtlasResource(), EquipmentWindow::~EquipmentWindow(), MiniStatusWindow::~MiniStatusWindow(), NpcDialog::~NpcDialog(), ParticleEmitter::~ParticleEmitter(), PlayerRelationsManager::~PlayerRelationsManager(), SkillInfo::~SkillInfo(), SocialWindow::~SocialWindow(), SpriteDef::~SpriteDef(), UserPalette::~UserPalette(), WhoIsOnline::~WhoIsOnline(), Widget::~Widget(), and WindowMenu::~WindowMenu().

◆ FOR_EACH_SAFE

#define FOR_EACH_SAFE (   type,
  iter,
  array 
)
Value:
for (type iter = array.begin(); \
iter != array.end(); ++ iter)

Definition at line 33 of file foreach.h.

Referenced by SkillDialog::slowLogic().

◆ FOR_EACHP

#define FOR_EACHP (   type,
  iter,
  array 
)

◆ FOR_EACHR

#define FOR_EACHR (   type,
  iter,
  array 
)
Value:
for (type iter = array.rbegin(), \
iter##_fend = array.rend(); iter != iter##_fend; ++ iter)

Definition at line 27 of file foreach.h.

Referenced by BasicContainer::findFirstWidget(), and Ea::BeingRecv::processBeingMove3().