libktorrent
2.2.0
|
Map of pointers. More...
#include <ptrmap.h>
Public Types | |
typedef std::map< Key, Data * >::const_iterator | const_iterator |
typedef std::map< Key, Data * >::iterator | iterator |
Public Member Functions | |
PtrMap (bool autodel=false) | |
virtual | ~PtrMap () |
iterator | begin () |
const_iterator | begin () const |
void | clear () |
bool | contains (const Key &k) const |
unsigned int | count () const |
iterator | end () |
const_iterator | end () const |
virtual bool | erase (const Key &key) |
iterator | erase (iterator i) |
Data * | find (const Key &k) |
const Data * | find (const Key &k) const |
bool | insert (const Key &k, Data *d, bool overwrite=true) |
void | setAutoDelete (bool yes) |
A Map where the data is a pointer. The PtrMap has an autodeletion feature. When autodelete is on, every time we remove something from the map, the data will be deleted.
|
inline |
|
inlinevirtual |
|
inline |
Remove all objects, will delete them if autodelete is on.
Definition at line 84 of file ptrmap.h.
Referenced by bt::PtrMap< bt::PieceDownloader *, bt::DownloadStatus >::~PtrMap().
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |