ManaPlus
Data Structures | Functions
dtor.h File Reference

(dc3c359)

#include <algorithm>
#include <functional>
#include "localconsts.h"

Go to the source code of this file.

Data Structures

struct  dtor< T >
 
struct  dtor< std::pair< T1, T2 > >
 

Functions

template<class Cont >
dtor< typename Cont::value_type > make_dtor (Cont const &d)
 
template<typename Container >
void delete_all (Container &c)
 

Function Documentation

◆ delete_all()

template<typename Container >
void delete_all ( Container c)
inline

Definition at line 55 of file dtor.h.

References make_dtor().

Referenced by ImageCollection::clear(), Ea::CharServerHandler::clear(), MailWindow::clear(), Particle::clear(), ParticleEngine::clear(), CompoundSprite::clear(), ShopItems::clear(), Being::clearCache(), Party::clearMembers(), Guild::clearMembers(), SkillDialog::clearSkills(), Ea::LoginHandler::clearWorlds(), NpcDialogDB::deleteDialog(), PlayerTableModel::freeWidgets(), SpellManager::load(), EAthena::CharServerRecv::processCharCharacters(), TmwAthena::CharServerRecv::processCharLogin(), EAthena::CharServerRecv::processCharLogin(), Being::removeHorse(), WindowContainer::slowLogic(), GuiTable::uninstallActionListeners(), ModDB::unload(), ItemFieldDb::unload(), AvatarDB::unload(), ElementalDb::unload(), HomunculusDB::unload(), MercenaryDB::unload(), MonsterDB::unload(), NPCDB::unload(), PETDB::unload(), SkillUnitDb::unload(), ItemDB::unload(), QuestDb::unload(), HorseDB::unload(), NpcDialogDB::unload(), MapLayer::updateOGL(), MapLayer::updateSDL(), Action::~Action(), BeingInfo::~BeingInfo(), BeingsListModel::~BeingsListModel(), ComplexItem::~ComplexItem(), EquipmentWindow::~EquipmentWindow(), ImageSet::~ImageSet(), ImageVertexes::~ImageVertexes(), ItemInfo::~ItemInfo(), Ea::LoginHandler::~LoginHandler(), MailWindow::~MailWindow(), Map::~Map(), MapLayer::~MapLayer(), MapRowVertexes::~MapRowVertexes(), MiniStatusWindow::~MiniStatusWindow(), PlayerRelationsManager::~PlayerRelationsManager(), SetupWindow::~SetupWindow(), SpellManager::~SpellManager(), StaticTableModel::~StaticTableModel(), StatusWindow::~StatusWindow(), Theme::~Theme(), WindowMenu::~WindowMenu(), and VirtFs::ZipEntry::~ZipEntry().

56 {
57  std::for_each(c.begin(), c.end(), make_dtor(c));
58 }
dtor< typename Cont::value_type > make_dtor(Cont const &d)
Definition: dtor.h:49

◆ make_dtor()

template<class Cont >
dtor<typename Cont::value_type> make_dtor ( Cont const &  d)
inline

Definition at line 49 of file dtor.h.

Referenced by delete_all().

50 {
52 }
Definition: dtor.h:32