⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qstack.3qt

📁 Qt/Embedded是一个多平台的C++图形用户界面应用程序框架
💻 3QT
字号:
.TH QStack 3qt "10 November 2000" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2000 Trolltech 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.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 "bool QStack::autoDelete () const"The same as QCollection::autoDelete()..PPSee also setAutoDelete()..SH "void QStack::clear () \fC[virtual]\fR"Removes all items from the stack, deleting them if autoDelete() is TRUE..PPSee also remove()..PPReimplemented from QCollection..SH "uint QStack::count () const \fC[virtual]\fR"Returns the number of items in the stack..PPSee also isEmpty()..PPReimplemented from QCollection..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 autoDelete() is TRUE. Returns TRUE if there was an item to pop..PPSee also clear()..SH "void QStack::setAutoDelete ( bool enable )"The same as QCollection::setAutoDelete()..PPSee also autoDelete()..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://doc.trolltech.com/qstack.html.SH COPYRIGHTCopyright 1992-2000 Trolltech AS, http://www.trolltech.com/.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -