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
QJSList< List, Value > Class Template Reference

#include <qjslist.h>

+ Inheritance diagram for QJSList< List, Value >:
+ Collaboration diagram for QJSList< List, Value >:

Public Member Functions

 QJSList (List *list, QJSEngine *engine)
 
Value at (qsizetype index) const
 
qsizetype size () const
 
void resize (qsizetype size)
 
bool includes (const Value &value) const
 
bool includes (const Value &value, qsizetype start) const
 
QString join (const QString &separator=QStringLiteral(",")) const
 
List slice () const
 
List slice (qsizetype start) const
 
List slice (qsizetype start, qsizetype end) const
 
qsizetype indexOf (const Value &value) const
 
qsizetype indexOf (const Value &value, qsizetype start) const
 
qsizetype lastIndexOf (const Value &value) const
 
qsizetype lastIndexOf (const Value &value, qsizetype start) const
 
QString toString () const
 

Detailed Description

template<typename List, typename Value = typename List::value_type>
class QJSList< List, Value >

Definition at line 40 of file qjslist.h.

Constructor & Destructor Documentation

◆ QJSList()

template<typename List , typename Value = typename List::value_type>
QJSList< List, Value >::QJSList ( List * list,
QJSEngine * engine )
inline

Definition at line 44 of file qjslist.h.

Member Function Documentation

◆ at()

template<typename List , typename Value = typename List::value_type>
Value QJSList< List, Value >::at ( qsizetype index) const
inline

Definition at line 46 of file qjslist.h.

References Q_ASSERT, and QJSList< List, Value >::size().

+ Here is the call graph for this function:

◆ includes() [1/2]

template<typename List , typename Value = typename List::value_type>
bool QJSList< List, Value >::includes ( const Value & value) const
inline

Definition at line 59 of file qjslist.h.

◆ includes() [2/2]

template<typename List , typename Value = typename List::value_type>
bool QJSList< List, Value >::includes ( const Value & value,
qsizetype start ) const
inline

Definition at line 64 of file qjslist.h.

◆ indexOf() [1/2]

template<typename List , typename Value = typename List::value_type>
qsizetype QJSList< List, Value >::indexOf ( const Value & value) const
inline

Definition at line 107 of file qjslist.h.

References begin(), it, and Q_ASSERT.

+ Here is the call graph for this function:

◆ indexOf() [2/2]

template<typename List , typename Value = typename List::value_type>
qsizetype QJSList< List, Value >::indexOf ( const Value & value,
qsizetype start ) const
inline

Definition at line 118 of file qjslist.h.

References begin(), it, and Q_ASSERT.

+ Here is the call graph for this function:

◆ join()

template<typename List , typename Value = typename List::value_type>
QString QJSList< List, Value >::join ( const QString & separator = QStringLiteral(",")) const
inline

Definition at line 70 of file qjslist.h.

Referenced by QJSList< List, Value >::toString(), and QJSList< QQmlListProperty< QObject >, QObject * >::toString().

+ Here is the caller graph for this function:

◆ lastIndexOf() [1/2]

template<typename List , typename Value = typename List::value_type>
qsizetype QJSList< List, Value >::lastIndexOf ( const Value & value) const
inline

Definition at line 130 of file qjslist.h.

References begin(), and it.

+ Here is the call graph for this function:

◆ lastIndexOf() [2/2]

template<typename List , typename Value = typename List::value_type>
qsizetype QJSList< List, Value >::lastIndexOf ( const Value & value,
qsizetype start ) const
inline

Definition at line 137 of file qjslist.h.

References begin(), and it.

+ Here is the call graph for this function:

◆ resize()

template<typename List , typename Value = typename List::value_type>
void QJSList< List, Value >::resize ( qsizetype size)
inline

Definition at line 54 of file qjslist.h.

◆ size()

template<typename List , typename Value = typename List::value_type>
qsizetype QJSList< List, Value >::size ( ) const
inline

Definition at line 52 of file qjslist.h.

Referenced by QJSList< List, Value >::at().

+ Here is the caller graph for this function:

◆ slice() [1/3]

template<typename List , typename Value = typename List::value_type>
List QJSList< List, Value >::slice ( ) const
inline

Definition at line 84 of file qjslist.h.

◆ slice() [2/3]

template<typename List , typename Value = typename List::value_type>
List QJSList< List, Value >::slice ( qsizetype start) const
inline

Definition at line 88 of file qjslist.h.

◆ slice() [3/3]

template<typename List , typename Value = typename List::value_type>
List QJSList< List, Value >::slice ( qsizetype start,
qsizetype end ) const
inline

Definition at line 95 of file qjslist.h.

◆ toString()

template<typename List , typename Value = typename List::value_type>
QString QJSList< List, Value >::toString ( ) const
inline

Definition at line 152 of file qjslist.h.

References QJSList< List, Value >::join().

+ Here is the call graph for this function:

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