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
QDataBuffer< Type > Class Template Reference

#include <qdatabuffer_p.h>

+ Collaboration diagram for QDataBuffer< Type >:

Public Member Functions

 QDataBuffer (qsizetype res)
 
 ~QDataBuffer ()
 
void reset ()
 
bool isEmpty () const
 
qsizetype size () const
 
Typedata () const
 
Typeat (qsizetype i)
 
const Typeat (qsizetype i) const
 
Typelast ()
 
const Typelast () const
 
Typefirst ()
 
const Typefirst () const
 
void add (const Type &t)
 
void pop_back ()
 
void resize (qsizetype size)
 
void reserve (qsizetype size)
 
void shrink (qsizetype size)
 
void swap (QDataBuffer< Type > &other)
 
QDataBufferoperator<< (const Type &t)
 

Detailed Description

template<typename Type>
class QDataBuffer< Type >

Definition at line 25 of file qdatabuffer_p.h.

Constructor & Destructor Documentation

◆ QDataBuffer()

template<typename Type >
QDataBuffer< Type >::QDataBuffer ( qsizetype res)
inlineexplicit

Definition at line 29 of file qdatabuffer_p.h.

References Q_CHECK_PTR(), QT_WARNING_DISABLE_GCC, QT_WARNING_POP, and QT_WARNING_PUSH.

+ Here is the call graph for this function:

◆ ~QDataBuffer()

template<typename Type >
QDataBuffer< Type >::~QDataBuffer ( )
inline

Definition at line 44 of file qdatabuffer_p.h.

Member Function Documentation

◆ add()

template<typename Type >
void QDataBuffer< Type >::add ( const Type & t)
inline

◆ at() [1/2]

◆ at() [2/2]

template<typename Type >
const Type & QDataBuffer< Type >::at ( qsizetype i) const
inline

Definition at line 58 of file qdatabuffer_p.h.

References i, and Q_ASSERT.

◆ data()

template<typename Type >
Type * QDataBuffer< Type >::data ( ) const
inline

◆ first() [1/2]

template<typename Type >
Type & QDataBuffer< Type >::first ( )
inline

Definition at line 61 of file qdatabuffer_p.h.

References QDataBuffer< Type >::isEmpty(), and Q_ASSERT.

Referenced by QMaxHeap< T >::top().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ first() [2/2]

template<typename Type >
const Type & QDataBuffer< Type >::first ( ) const
inline

Definition at line 62 of file qdatabuffer_p.h.

References QDataBuffer< Type >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ isEmpty()

◆ last() [1/2]

template<typename Type >
Type & QDataBuffer< Type >::last ( )
inline

Definition at line 59 of file qdatabuffer_p.h.

References QDataBuffer< Type >::isEmpty(), and Q_ASSERT.

Referenced by QOutlineMapper::curveTo(), QSGNodeUpdater::enterClipNode(), QSGNodeUpdater::enterGeometryNode(), QSGNodeUpdater::enterOpacityNode(), QSGNodeUpdater::enterRenderNode(), QSGNodeUpdater::enterTransformNode(), QSGBatchRenderer::Updater::visitClipNode(), QSGBatchRenderer::Updater::visitGeometryNode(), QSGBatchRenderer::Updater::visitOpacityNode(), and QSGBatchRenderer::Updater::visitTransformNode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ last() [2/2]

template<typename Type >
const Type & QDataBuffer< Type >::last ( ) const
inline

Definition at line 60 of file qdatabuffer_p.h.

References QDataBuffer< Type >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ operator<<()

template<typename Type >
QDataBuffer & QDataBuffer< Type >::operator<< ( const Type & t)
inline

Definition at line 111 of file qdatabuffer_p.h.

References QDataBuffer< Type >::add().

+ Here is the call graph for this function:

◆ pop_back()

template<typename Type >
void QDataBuffer< Type >::pop_back ( )
inline

Definition at line 70 of file qdatabuffer_p.h.

References Q_ASSERT.

Referenced by QSGNodeUpdater::leaveOpacityNode(), QSGNodeUpdater::leaveTransformNode(), QSGBatchRenderer::Updater::visitClipNode(), QSGBatchRenderer::Updater::visitOpacityNode(), and QSGBatchRenderer::Updater::visitTransformNode().

+ Here is the caller graph for this function:

◆ reserve()

template<typename Type >
void QDataBuffer< Type >::reserve ( qsizetype size)
inline

Definition at line 80 of file qdatabuffer_p.h.

References Q_CHECK_PTR().

Referenced by QDataBuffer< Type >::add(), QOutlineMapper::curveTo(), QDashedStrokeProcessor::process(), and QDataBuffer< Type >::resize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reset()

◆ resize()

template<typename Type >
void QDataBuffer< Type >::resize ( qsizetype size)
inline

Definition at line 75 of file qdatabuffer_p.h.

References QDataBuffer< Type >::reserve(), and QDataBuffer< Type >::size().

Referenced by QOutlineMapper::convertPath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ shrink()

template<typename Type >
void QDataBuffer< Type >::shrink ( qsizetype size)
inline

Definition at line 91 of file qdatabuffer_p.h.

References Q_ASSERT, Q_CHECK_PTR(), and QDataBuffer< Type >::size().

Referenced by QSGBatchRenderer::Renderer::releaseCachedResources().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ size()

◆ swap()

template<typename Type >
void QDataBuffer< Type >::swap ( QDataBuffer< Type > & other)
inline

Definition at line 105 of file qdatabuffer_p.h.

References other(), and qSwap().

+ Here is the call graph for this function:

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