Public Member Functions | List of all members
QValueStack< T > Class Template Reference

#include <qvaluestack.h>

Inheritance diagram for QValueStack< T >:
QValueList< T >

Public Member Functions

 QValueStack ()
 
 ~QValueStack ()
 
void push (const T &d)
 
pop ()
 
T & top ()
 
const T & top () const
 
- Public Member Functions inherited from QValueList< T >
 QValueList ()
 
 QValueList (const QValueList< T > &l)
 
 ~QValueList ()
 
QValueList< T > & operator= (const QValueList< T > &l)
 
QValueList< T > operator+ (const QValueList< T > &l) const
 
QValueList< T > & operator+= (const QValueList< T > &l)
 
bool operator== (const QValueList< T > &l) const
 
bool operator!= (const QValueList< T > &l) const
 
Iterator begin ()
 
ConstIterator begin () const
 
Iterator end ()
 
ConstIterator end () const
 
Iterator fromLast ()
 
ConstIterator fromLast () const
 
bool isEmpty () const
 
Iterator insert (Iterator it, const T &x)
 
Iterator append (const T &x)
 
Iterator prepend (const T &x)
 
Iterator remove (Iterator it)
 
void remove (const T &x)
 
T & first ()
 
const T & first () const
 
T & last ()
 
const T & last () const
 
T & operator[] (uint i)
 
const T & operator[] (uint i) const
 
Iterator at (uint i)
 
ConstIterator at (uint i) const
 
Iterator find (const T &x)
 
ConstIterator find (const T &x) const
 
Iterator find (Iterator it, const T &x)
 
ConstIterator find (ConstIterator it, const T &x) const
 
int findIndex (const T &x) const
 
uint contains (const T &x) const
 
uint count () const
 
void clear ()
 
QValueList< T > & operator+= (const T &x)
 
QValueList< T > & operator<< (const T &x)
 

Additional Inherited Members

- Public Types inherited from QValueList< T >
typedef QValueListIterator< T > Iterator
 
typedef QValueListConstIterator< T > ConstIterator
 
typedef T ValueType
 
- Protected Member Functions inherited from QValueList< T >
void detach ()
 
- Protected Attributes inherited from QValueList< T >
QValueListPrivate< T > * sh
 

Detailed Description

template<class T>
class QValueStack< T >

Definition at line 47 of file qvaluestack.h.

Constructor & Destructor Documentation

template<class T>
QValueStack< T >::QValueStack ( )
inline

Definition at line 50 of file qvaluestack.h.

50 {}
template<class T>
QValueStack< T >::~QValueStack ( )
inline

Definition at line 51 of file qvaluestack.h.

51 {}

Member Function Documentation

template<class T>
T QValueStack< T >::pop ( )
inline

Definition at line 53 of file qvaluestack.h.

54  {
55  T elem( this->last() );
56  if ( !this->isEmpty() )
57  this->remove( this->fromLast() );
58  return elem;
59  }
T & last()
Definition: qvaluelist.h:380
Iterator fromLast()
Definition: qvaluelist.h:365
bool isEmpty() const
Definition: qvaluelist.h:368
template<class T>
void QValueStack< T >::push ( const T &  d)
inline

Definition at line 52 of file qvaluestack.h.

Iterator append(const T &x)
Definition: qvaluelist.h:372
template<class T>
T& QValueStack< T >::top ( )
inline

Definition at line 60 of file qvaluestack.h.

60 { return this->last(); }
T & last()
Definition: qvaluelist.h:380
template<class T>
const T& QValueStack< T >::top ( ) const
inline

Definition at line 61 of file qvaluestack.h.

61 { return this->last(); }
T & last()
Definition: qvaluelist.h:380

The documentation for this class was generated from the following file: