📄 qstack.3qt
字号:
.TH QStack 3qt "6 July 1999" "Troll Tech AS" \" -*- nroff -*-.\" Copyright 1992-1999 Troll Tech AS. All rights reserved. See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQStack \- Template class that provides a stack.SH SYNOPSIS.br.PP\fC#include <qstack.h>\fR.PPInherits QGList..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQStack\fR ()".br.ti -1c.BI "\fBQStack\fR ( const QStack<type> & s )".br.ti -1c.BI "\fB~QStack\fR ()".br.ti -1c.BI "QStack<type>& \fBoperator=\fR ( const QStack<type> & s )".br.ti -1c.BI "bool \fBautoDelete\fR () const".br.ti -1c.BI "void \fBsetAutoDelete\fR ( bool enable )".br.ti -1c.BI "virtual uint \fBcount\fR () const".br.ti -1c.BI "bool \fBisEmpty\fR () const".br.ti -1c.BI "void \fBpush\fR ( const type * d )".br.ti -1c.BI "type* \fBpop\fR ()".br.ti -1c.BI "bool \fBremove\fR ()".br.ti -1c.BI "virtual void \fBclear\fR ()".br.ti -1c.BI "type* \fBtop\fR () const".br.ti -1c.BI "operator \fBtype*\fR ()const".br.ti -1c.BI "type* \fBcurrent\fR () const".br.in -1c.SH DESCRIPTIONThe QStack class is a template class that provides a stack..PPQStack is implemented as a template class. Define a template instance QStack<X> to create a stack that operates on pointers to X, or X*..PPA stack is a Last In, First Out (LIFO) structure. Items are added to the top of the stack with push() and retrieved from the top with pop()..PPSee also: Collection Classes.SH MEMBER FUNCTION DOCUMENTATION.SH "QStack::QStack ()"Creates and empty stack..SH "QStack::QStack ( const QStack<type> & s )"Creates a stack by making a shallow copy of another stack..SH "QStack::~QStack ()"Destroys the stack. All items will be deleted if autoDelete() is TRUE..SH "QStack::operator type* () const"Returns a reference to the top item on the stack (most recently pushed). The stack is not changed..SH "type* QStack::current () const"Returns a reference to the top item on the stack (most recently pushed). The stack is not changed..SH "bool QStack::isEmpty () const"Returns TRUE is the stack contains no elements to be popped.SH "QStack<type>& QStack::operator= ( const QStack<type> & s )"Sets the contents of this stack by making a shallow copy of another stack. Elements currently in this stack will be deleted if autoDelete() is TRUE..SH "type* QStack::pop ()"Removes the top item from the stack and returns it..SH "void QStack::push ( const type * d )"Adds an element to the top of the stack. Last in, first out..SH "bool QStack::remove ()"Removes the top item from the stack and deletes it if if autoDelete() is TRUE. Returns TRUE if there was an item to pop..SH "type* QStack::top () const"Returns a reference to the top item on the stack (most recently pushed).The stack is not changed..SH "SEE ALSO".BR http://www.troll.no/qt/qstack.html.SH COPYRIGHTCopyright 1992-1999 Troll Tech AS. See the license file included inthe distribution for a complete license statement..SH AUTHORGenerated automatically from the source code.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -