ManaPlus
Data Structures | Functions
dtor.h File Reference

(986a3bf)

#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 56 of file dtor.h.

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

References make_dtor().

Referenced by CompoundSprite::clear(), ShopItems::clear(), MailWindow::clear(), Particle::clear(), ParticleEngine::clear(), ImageCollection::clear(), Ea::CharServerHandler::clear(), Being::clearCache(), Guild::clearMembers(), Party::clearMembers(), SkillDialog::clearSkills(), Ea::LoginHandler::clearWorlds(), NpcDialogDB::deleteDialog(), PlayerTableModel::freeWidgets(), SpellManager::load(), EAthena::CharServerRecv::processCharCharacters(), EAthena::CharServerRecv::processCharLogin(), TmwAthena::CharServerRecv::processCharLogin(), Being::removeHorse(), WindowContainer::slowLogic(), GuiTable::uninstallActionListeners(), AvatarDB::unload(), ClanDb::unload(), ElementalDb::unload(), HomunculusDB::unload(), HorseDB::unload(), ItemDB::unload(), ItemFieldDb::unload(), MercenaryDB::unload(), ModDB::unload(), MonsterDB::unload(), NPCDB::unload(), NpcDialogDB::unload(), PETDB::unload(), QuestDb::unload(), SkillUnitDb::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().

◆ make_dtor()

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

Definition at line 50 of file dtor.h.

51 {
53 }
Definition: dtor.h:34

Referenced by delete_all().