Source Code (Use browser search to find items of interest.)
Class Index
qt'QPtrDict (./qt-2.1.0/src/tools/qptrdict.h:34)
template<class type> class Q_EXPORT QPtrDict : public QGDict
{
public:
QPtrDict(int size=17) : QGDict(size,PtrKey,0,0) {}
QPtrDict( const QPtrDict<type> &d ) : QGDict(d) {}
~QPtrDict() { clear(); }
QPtrDict<type> &operator=(const QPtrDict<type> &d)
{ return (QPtrDict<type>&)QGDict::operator=(d); }
uint count() const { return QGDict::count(); }
uint size() const { return QGDict::size(); }
bool isEmpty() const { return QGDict::count() == 0; }
void insert( void *k, const type *d )
{ QGDict::look_ptr(k,(Item)d,1); }
void replace( void *k, const type *d )
{ QGDict::look_ptr(k,(Item)d,2); }
bool remove( void *k ) { return QGDict::remove_ptr(k); }
type *take( void *k ) { return (type*)QGDict::take_ptr(k); }
type *find( void *k ) const
{ return (type *)((QGDict*)this)->QGDict::look_ptr(k,0,0); }
type *operator[]( void *k ) const
{ return (type *)((QGDict*)this)->QGDict::look_ptr(k,0,0); }
void clear() { QGDict::clear(); }
void resize( uint n ) { QGDict::resize(n); }
void statistics() const { QGDict::statistics(); }
private:
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};
qt'QPtrDict::deleteItem() (./qt-2.1.0/include/qptrdict.h:59)
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};
qt'QPtrDict::deleteItem() (./qt-2.1.0/src/tools/qptrdict.h:59)
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};