Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QFreeListElement< T > Struct Template Reference

#include <qfreelist_p.h>

Collaboration diagram for QFreeListElement< T >:

Public Types

typedef const T & ConstReferenceType
typedef T & ReferenceType

Public Member Functions

ConstReferenceType t () const
ReferenceType t ()

Public Attributes

_t
QAtomicInt next

Detailed Description

template<typename T>
struct QFreeListElement< T >

Element in a QFreeList. ConstReferenceType and ReferenceType are used as the return values for QFreeList::at() and QFreeList::operator[](). Contains the real data storage (_t) and the id of the next free element (next).

Note: the t() functions should be used to access the data, not _t.

Definition at line 32 of file qfreelist_p.h.

Member Typedef Documentation

◆ ConstReferenceType

template<typename T>
typedef const T& QFreeListElement< T >::ConstReferenceType

Definition at line 34 of file qfreelist_p.h.

◆ ReferenceType

template<typename T>
typedef T& QFreeListElement< T >::ReferenceType

Definition at line 35 of file qfreelist_p.h.

Member Function Documentation

◆ t() [1/2]

template<typename T>
ReferenceType QFreeListElement< T >::t ( )
inline

Definition at line 41 of file qfreelist_p.h.

◆ t() [2/2]

template<typename T>
ConstReferenceType QFreeListElement< T >::t ( ) const
inline

Definition at line 40 of file qfreelist_p.h.

Member Data Documentation

◆ _t

template<typename T>
T QFreeListElement< T >::_t

Definition at line 37 of file qfreelist_p.h.

◆ next

template<typename T>
QAtomicInt QFreeListElement< T >::next

Definition at line 38 of file qfreelist_p.h.


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