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
QSSGDataRef< T > Struct Template Reference

#include <qssgdataref_p.h>

+ Collaboration diagram for QSSGDataRef< T >:

Public Member Functions

 QSSGDataRef (T *inData, qsizetype inSize)
 
 QSSGDataRef ()
 
qsizetype size () const
 
T * begin ()
 
T * end ()
 
T * begin () const
 
T * end () const
 
T & first ()
 
T & last ()
 
const T & first () const
 
const T & last () const
 
bool isEmpty () const
 
T & operator[] (qsizetype index)
 
const T & operator[] (qsizetype index) const
 
void clear ()
 
 operator QSSGDataView< T > () const
 
 operator void * ()
 

Public Attributes

T * mData
 
qsizetype mSize
 

Detailed Description

template<typename T>
struct QSSGDataRef< T >

Definition at line 156 of file qssgdataref_p.h.

Constructor & Destructor Documentation

◆ QSSGDataRef() [1/2]

template<typename T >
QSSGDataRef< T >::QSSGDataRef ( T * inData,
qsizetype inSize )
inline

Definition at line 161 of file qssgdataref_p.h.

References Q_ASSERT.

◆ QSSGDataRef() [2/2]

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

Definition at line 162 of file qssgdataref_p.h.

Member Function Documentation

◆ begin() [1/2]

template<typename T >
T * QSSGDataRef< T >::begin ( )
inline

Definition at line 165 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData.

Referenced by QSSGDataRef< T >::first(), and QSSGDataRef< T >::first().

+ Here is the caller graph for this function:

◆ begin() [2/2]

template<typename T >
T * QSSGDataRef< T >::begin ( ) const
inline

Definition at line 168 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData.

◆ clear()

template<typename T >
void QSSGDataRef< T >::clear ( )
inline

Definition at line 193 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData, and QSSGDataRef< T >::mSize.

◆ end() [1/2]

template<typename T >
T * QSSGDataRef< T >::end ( )
inline

Definition at line 166 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData, and QSSGDataRef< T >::mSize.

Referenced by QSSGDataRef< T >::last(), and QSSGDataRef< T >::last().

+ Here is the caller graph for this function:

◆ end() [2/2]

template<typename T >
T * QSSGDataRef< T >::end ( ) const
inline

Definition at line 169 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData, and QSSGDataRef< T >::mSize.

◆ first() [1/2]

template<typename T >
T & QSSGDataRef< T >::first ( )
inline

Definition at line 171 of file qssgdataref_p.h.

References QSSGDataRef< T >::begin(), QSSGDataRef< T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ first() [2/2]

template<typename T >
const T & QSSGDataRef< T >::first ( ) const
inline

Definition at line 174 of file qssgdataref_p.h.

References QSSGDataRef< T >::begin(), QSSGDataRef< T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ isEmpty()

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

Definition at line 177 of file qssgdataref_p.h.

References QSSGDataRef< T >::mSize.

Referenced by QSSGDataRef< T >::first(), QSSGDataRef< T >::first(), QSSGDataRef< T >::last(), and QSSGDataRef< T >::last().

+ Here is the caller graph for this function:

◆ last() [1/2]

template<typename T >
T & QSSGDataRef< T >::last ( )
inline

Definition at line 172 of file qssgdataref_p.h.

References QSSGDataRef< T >::end(), QSSGDataRef< T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ last() [2/2]

template<typename T >
const T & QSSGDataRef< T >::last ( ) const
inline

Definition at line 175 of file qssgdataref_p.h.

References QSSGDataRef< T >::end(), QSSGDataRef< T >::isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ operator QSSGDataView< T >()

template<typename T >
QSSGDataRef< T >::operator QSSGDataView< T > ( ) const
inline

Definition at line 199 of file qssgdataref_p.h.

◆ operator void *()

template<typename T >
QSSGDataRef< T >::operator void * ( )
inline

Definition at line 200 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData.

◆ operator[]() [1/2]

template<typename T >
T & QSSGDataRef< T >::operator[] ( qsizetype index)
inline

Definition at line 179 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData, QSSGDataRef< T >::mSize, and Q_ASSERT.

◆ operator[]() [2/2]

template<typename T >
const T & QSSGDataRef< T >::operator[] ( qsizetype index) const
inline

Definition at line 186 of file qssgdataref_p.h.

References QSSGDataRef< T >::mData, QSSGDataRef< T >::mSize, and Q_ASSERT.

◆ size()

template<typename T >
qsizetype QSSGDataRef< T >::size ( ) const
inline

Definition at line 163 of file qssgdataref_p.h.

References QSSGDataRef< T >::mSize.

Member Data Documentation

◆ mData

◆ mSize


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