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

#include <qssgdataref_p.h>

+ Collaboration diagram for QSSGDataView< T >:

Public Member Functions

 QSSGDataView (const QList< T > &data)
 
template<qsizetype N>
 QSSGDataView (const QVarLengthArray< T, N > &data)
 
 QSSGDataView (const T *inData, qsizetype inSize)
 
constexpr QSSGDataView ()
 
qsizetype size () const
 
const T * begin () const
 
const T * end () const
 
const T & first () const
 
const T & last () const
 
const T & operator[] (int index) const
 
bool isEmpty () const
 
void clear ()
 
 operator const void * ()
 

Public Attributes

const T * mData
 
qsizetype mSize
 

Detailed Description

template<typename T>
struct QSSGDataView< T >

Definition at line 27 of file qssgdataref_p.h.

Constructor & Destructor Documentation

◆ QSSGDataView() [1/4]

template<typename T >
QSSGDataView< T >::QSSGDataView ( const QList< T > & data)
inlineexplicit

Definition at line 32 of file qssgdataref_p.h.

References QSSGDataView< T >::mSize, and Q_ASSERT.

◆ QSSGDataView() [2/4]

template<typename T >
template<qsizetype N>
QSSGDataView< T >::QSSGDataView ( const QVarLengthArray< T, N > & data)
inlineexplicit

Definition at line 34 of file qssgdataref_p.h.

References QSSGDataView< T >::mSize, and Q_ASSERT.

◆ QSSGDataView() [3/4]

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

Definition at line 35 of file qssgdataref_p.h.

References QSSGDataView< T >::mSize, and Q_ASSERT.

◆ QSSGDataView() [4/4]

template<typename T >
constexpr QSSGDataView< T >::QSSGDataView ( )
inlineconstexpr

Definition at line 36 of file qssgdataref_p.h.

Member Function Documentation

◆ begin()

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

Definition at line 40 of file qssgdataref_p.h.

References QSSGDataView< T >::mData.

Referenced by QSSGDataView< T >::first().

+ Here is the caller graph for this function:

◆ clear()

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

Definition at line 55 of file qssgdataref_p.h.

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

◆ end()

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

Definition at line 41 of file qssgdataref_p.h.

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

Referenced by QSSGDataView< T >::last().

+ Here is the caller graph for this function:

◆ first()

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

Definition at line 43 of file qssgdataref_p.h.

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

+ Here is the call graph for this function:

◆ isEmpty()

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

Definition at line 53 of file qssgdataref_p.h.

References QSSGDataView< T >::mSize.

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

+ Here is the caller graph for this function:

◆ last()

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

Definition at line 44 of file qssgdataref_p.h.

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

+ Here is the call graph for this function:

◆ operator const void *()

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

Definition at line 61 of file qssgdataref_p.h.

References QSSGDataView< T >::mData.

◆ operator[]()

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

Definition at line 46 of file qssgdataref_p.h.

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

◆ size()

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

Definition at line 38 of file qssgdataref_p.h.

References QSSGDataView< T >::mSize.

Referenced by generateMainLightCalculation().

+ Here is the caller graph for this function:

Member Data Documentation

◆ mData

◆ mSize


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