Blame qtools/qstack.doc

Packit Service 50c9f2
/****************************************************************************
Packit Service 50c9f2
** 
Packit Service 50c9f2
**
Packit Service 50c9f2
** QStack class documentation
Packit Service 50c9f2
**
Packit Service 50c9f2
** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
Packit Service 50c9f2
**
Packit Service 50c9f2
** This file is part of the Qt GUI Toolkit.
Packit Service 50c9f2
**
Packit Service 50c9f2
** This file may be distributed under the terms of the Q Public License
Packit Service 50c9f2
** as defined by Trolltech AS of Norway and appearing in the file
Packit Service 50c9f2
** LICENSE.QPL included in the packaging of this file.
Packit Service 50c9f2
**
Packit Service 50c9f2
** This file may be distributed and/or modified under the terms of the
Packit Service 50c9f2
** GNU General Public License version 2 as published by the Free Software
Packit Service 50c9f2
** Foundation and appearing in the file LICENSE.GPL included in the
Packit Service 50c9f2
** packaging of this file.
Packit Service 50c9f2
**
Packit Service 50c9f2
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
Packit Service 50c9f2
** licenses may use this file in accordance with the Qt Commercial License
Packit Service 50c9f2
** Agreement provided with the Software.
Packit Service 50c9f2
**
Packit Service 50c9f2
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
Packit Service 50c9f2
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Packit Service 50c9f2
**
Packit Service 50c9f2
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
Packit Service 50c9f2
**   information about Qt Commercial License Agreements.
Packit Service 50c9f2
** See http://www.trolltech.com/qpl/ for QPL licensing information.
Packit Service 50c9f2
** See http://www.trolltech.com/gpl/ for GPL licensing information.
Packit Service 50c9f2
**
Packit Service 50c9f2
** Contact info@trolltech.com if any conditions of this licensing are
Packit Service 50c9f2
** not clear to you.
Packit Service 50c9f2
**
Packit Service 50c9f2
**********************************************************************/
Packit Service 50c9f2
Packit Service 50c9f2
Packit Service 50c9f2
/*****************************************************************************
Packit Service 50c9f2
  QStack documentation
Packit Service 50c9f2
 *****************************************************************************/
Packit Service 50c9f2
Packit Service 50c9f2
/*!
Packit Service 50c9f2
  \class QStack qstack.h
Packit Service 50c9f2
  \brief The QStack class is a template class that provides a stack.
Packit Service 50c9f2
Packit Service 50c9f2
  \ingroup collection
Packit Service 50c9f2
  \ingroup tools
Packit Service 50c9f2
Packit Service 50c9f2
  QStack is implemented as a template class. Define a template
Packit Service 50c9f2
  instance QStack\<X\> to create a stack that operates on pointers to
Packit Service 50c9f2
  X, or X*.
Packit Service 50c9f2
Packit Service 50c9f2
  A stack is a Last In, First Out (LIFO) structure. Items are added to
Packit Service 50c9f2
  the top of the stack with push() and retrieved from the top
Packit Service 50c9f2
  with pop().
Packit Service 50c9f2
Packit Service 50c9f2
  \sa \link collection.html Collection Classes\endlink
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn QStack::QStack () 
Packit Service 50c9f2
  Creates and empty stack.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn QStack::QStack (const QStack<type>& s) 
Packit Service 50c9f2
  Creates a stack by making a shallow copy of another stack.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn QStack::~QStack () 
Packit Service 50c9f2
  Destroys the stack.  All items will be deleted if autoDelete() is TRUE.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn QStack<type>& QStack::operator= (const QStack<type>& s) 
Packit Service 50c9f2
  Sets the contents of this stack by making a shallow copy of another stack.
Packit Service 50c9f2
  Elements currently in this stack will be deleted if autoDelete() is TRUE.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn bool QStack::isEmpty () const 
Packit Service 50c9f2
  Returns TRUE is the stack contains no elements to be \link pop() popped\endlink.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn void QStack::push (const type* d) 
Packit Service 50c9f2
  Adds an element to the top of the stack.  Last in, first out.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn type* QStack::pop () 
Packit Service 50c9f2
  Removes the top item from the stack and returns it.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn bool QStack::remove () 
Packit Service 50c9f2
  Removes the top item from the stack and deletes it if
Packit Service 50c9f2
  autoDelete() is TRUE.  Returns TRUE if there was an item to pop.
Packit Service 50c9f2
Packit Service 50c9f2
  \sa clear()
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn void QStack::clear()
Packit Service 50c9f2
  Removes all items from the stack, deleting them if
Packit Service 50c9f2
  autoDelete() is TRUE.
Packit Service 50c9f2
Packit Service 50c9f2
  \sa remove()
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn uint QStack::count() const
Packit Service 50c9f2
  Returns the number of items in the stack.
Packit Service 50c9f2
Packit Service 50c9f2
  \sa isEmpty()
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn type* QStack::top () const 
Packit Service 50c9f2
  Returns a reference to the top item on the stack (most recently pushed).
Packit Service 50c9f2
  The stack is not changed.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn QStack::operator type* ()const 
Packit Service 50c9f2
  Returns a reference to the top item on the stack (most recently pushed).
Packit Service 50c9f2
  The stack is not changed.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn type* QStack::current () const 
Packit Service 50c9f2
  Returns a reference to the top item on the stack (most recently pushed).
Packit Service 50c9f2
  The stack is not changed.
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn bool QStack::autoDelete() const
Packit Service 50c9f2
Packit Service 50c9f2
  The same as QCollection::autoDelete().
Packit Service 50c9f2
Packit Service 50c9f2
  \sa setAutoDelete()
Packit Service 50c9f2
*/
Packit Service 50c9f2
Packit Service 50c9f2
/*! \fn void QStack::setAutoDelete( bool enable ) 
Packit Service 50c9f2
Packit Service 50c9f2
  The same as QCollection::setAutoDelete().
Packit Service 50c9f2
 
Packit Service 50c9f2
  \sa autoDelete()
Packit Service 50c9f2
*/