Source Code (Use browser search to find items of interest.)
Class Index
qt'QStack (./qt-2.1.0/src/tools/qstack.h:34)
template<class type> class QStack : private QGList
{
public:
QStack() {}
QStack( const QStack<type> &s ) : QGList(s) {}
~QStack() { clear(); }
QStack<type> &operator=(const QStack<type> &s)
{ return (QStack<type>&)QGList::operator=(s); }
bool autoDelete() const { return QCollection::autoDelete(); }
void setAutoDelete( bool del ) { QCollection::setAutoDelete(del); }
uint count() const { return QGList::count(); }
bool isEmpty() const { return QGList::count() == 0; }
void push( const type *d ) { QGList::insertAt(0,Item(d)); }
type *pop() { return (type *)QGList::takeFirst(); }
bool remove() { return QGList::removeFirst(); }
void clear() { QGList::clear(); }
type *top() const { return (type *)QGList::cfirst(); }
operator type *() const { return (type *)QGList::cfirst(); }
type *current() const { return (type *)QGList::cfirst(); }
private:
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};
qt'QStack::top() (./qt-2.1.0/include/qstack.h:50)
type *top() const { return (type *)QGList::cfirst(); }
operator type *() const { return (type *)QGList::cfirst(); }
type *current() const { return (type *)QGList::cfirst(); }
private:
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};
qt'QStack::top() (./qt-2.1.0/src/tools/qstack.h:50)
type *top() const { return (type *)QGList::cfirst(); }
operator type *() const { return (type *)QGList::cfirst(); }
type *current() const { return (type *)QGList::cfirst(); }
private:
void deleteItem( Item d ) { if ( del_item ) delete (type *)d; }
};