Qt 6.x
The Qt SDK
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)
 
bool includes (const Value &value) const
 
bool includes (const Value &value, int start) const
 
QString join (const QString &separator=QStringLiteral(",")) const
 
List slice () const
 
List slice (int start) const
 
List slice (int start, int end) const
 
int indexOf (const Value &value) const
 
int indexOf (const Value &value, int start) const
 
int lastIndexOf (const Value &value) const
 
int lastIndexOf (const Value &value, int 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

◆ 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 46 of file qjslist.h.

◆ includes() [2/2]

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

Definition at line 51 of file qjslist.h.

◆ indexOf() [1/2]

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

Definition at line 94 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>
int QJSList< List, Value >::indexOf ( const Value &  value,
int  start 
) const
inline

Definition at line 105 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 57 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>
int QJSList< List, Value >::lastIndexOf ( const Value &  value) const
inline

Definition at line 117 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>
int QJSList< List, Value >::lastIndexOf ( const Value &  value,
int  start 
) const
inline

Definition at line 125 of file qjslist.h.

References begin(), and it.

+ Here is the call 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 71 of file qjslist.h.

◆ slice() [2/3]

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

Definition at line 75 of file qjslist.h.

◆ slice() [3/3]

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

Definition at line 82 of file qjslist.h.

◆ toString()

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

Definition at line 141 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: