Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QFiniteStack< T > Struct Template Reference

#include <qfinitestack_p.h>

+ Collaboration diagram for QFiniteStack< T >:

Public Member Functions

 QFiniteStack ()
 
 ~QFiniteStack ()
 
void deallocate ()
 
void allocate (int size)
 
int capacity () const
 
bool isEmpty () const
 
const T & top () const
 
T & top ()
 
void push (const T &o)
 
pop ()
 
int count () const
 
const T & at (int index) const
 
T & operator[] (int index)
 

Detailed Description

template<typename T>
struct QFiniteStack< T >

Definition at line 23 of file qfinitestack_p.h.

Constructor & Destructor Documentation

◆ QFiniteStack()

template<typename T >
QFiniteStack< T >::QFiniteStack ( )
inline

Definition at line 47 of file qfinitestack_p.h.

◆ ~QFiniteStack()

template<typename T >
QFiniteStack< T >::~QFiniteStack ( )
inline

Definition at line 53 of file qfinitestack_p.h.

Member Function Documentation

◆ allocate()

template<typename T >
void QFiniteStack< T >::allocate ( int size)
inline

Definition at line 121 of file qfinitestack_p.h.

References Q_ASSERT.

◆ at()

template<typename T >
const T & QFiniteStack< T >::at ( int index) const
inline

Definition at line 109 of file qfinitestack_p.h.

◆ capacity()

template<typename T >
int QFiniteStack< T >::capacity ( ) const
inline

Definition at line 30 of file qfinitestack_p.h.

◆ count()

template<typename T >
int QFiniteStack< T >::count ( ) const
inline

Definition at line 103 of file qfinitestack_p.h.

◆ deallocate()

template<typename T >
void QFiniteStack< T >::deallocate ( )
inline

Definition at line 134 of file qfinitestack_p.h.

References i.

◆ isEmpty()

template<typename T >
bool QFiniteStack< T >::isEmpty ( ) const
inline

Definition at line 59 of file qfinitestack_p.h.

Referenced by QQmlObjectCreator::clear(), and QQmlObjectCreator::finalize().

+ Here is the caller graph for this function:

◆ operator[]()

template<typename T >
T & QFiniteStack< T >::operator[] ( int index)
inline

Definition at line 115 of file qfinitestack_p.h.

◆ pop()

template<typename T >
T QFiniteStack< T >::pop ( )
inline

Definition at line 88 of file qfinitestack_p.h.

References Q_ASSERT.

Referenced by QQmlObjectCreator::clear(), and QQmlObjectCreator::finalize().

+ Here is the caller graph for this function:

◆ push()

template<typename T >
void QFiniteStack< T >::push ( const T & o)
inline

Definition at line 77 of file qfinitestack_p.h.

References o, and Q_ASSERT.

◆ top() [1/2]

template<typename T >
T & QFiniteStack< T >::top ( )
inline

Definition at line 71 of file qfinitestack_p.h.

◆ top() [2/2]

template<typename T >
const T & QFiniteStack< T >::top ( ) const
inline

Definition at line 65 of file qfinitestack_p.h.


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