xoreos
0.0.5
|
A list of pointer to objects, with automatic deletion. More...
#include <ptrlist.h>
Public Member Functions | |
~PtrList () | |
void | clear () |
void | pop_front () |
void | pop_back () |
std::list< T * >::iterator | erase (typename std::list< T *>::iterator position) |
std::list< T * >::iterator | erase (typename std::list< T *>::iterator first, typename std::list< T *>::iterator last) |
void | resize (typename std::list< T *>::size_type n, typename std::list< T *>::value_type val=typename std::list< T *>::value_type()) |
void | remove (const typename std::list< T *>::value_type &val) |
template<class Predicate > | |
void | remove_if (Predicate pred) |
template<class InputIterator > | |
void | assign (InputIterator first, InputIterator last) |
void | assign (typename std::list< T *>::size_type n, const typename std::list< T *>::value_type &val) |
A list of pointer to objects, with automatic deletion.
A PtrList expects to hold sole ownership of its contents.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 47 of file ptrlist.h.
Referenced by Common::PtrList< const XMLNode >::assign(), Engines::Jade::AreaLayout::clear(), Engines::Jade::Area::clear(), Common::ConfigFile::clear(), Engines::Witcher::Area::clear(), Engines::KotOR2::Area::clear(), Engines::NWN::Area::clear(), Engines::NWN2::Area::clear(), Engines::KotOR::Area::clear(), Engines::NWN::DialogBox::clearEntry(), Events::RequestManager::clearList(), Engines::NWN2::Creature::unloadModel(), and Common::PtrList< const XMLNode >::~PtrList().
|
inline |
Definition at line 64 of file ptrlist.h.
Referenced by Common::PtrList< const XMLNode >::remove(), and Common::PtrList< const XMLNode >::remove_if().
|
inline |
|
inline |
Definition at line 59 of file ptrlist.h.
Referenced by Common::PtrList< const XMLNode >::resize().
|
inline |
|
inline |
Definition at line 94 of file ptrlist.h.
Referenced by Common::ConfigFile::removeDomain(), and Engines::KotOR::Area::removeObject().
|
inline |
Definition at line 104 of file ptrlist.h.
Referenced by Events::RequestManager::collectGarbage().
|
inline |