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
qqmllistwrapper.cpp File Reference

(fff113b4a3259ed558e97bc66ecdacd7455dc490)

#include "qqmllistwrapper_p.h"
#include <QtQml/qqmlinfo.h>
#include <private/qqmllist_p.h>
#include <private/qv4arrayiterator_p.h>
#include <private/qv4arrayobject_p.h>
#include <private/qv4functionobject_p.h>
#include <private/qv4objectiterator_p.h>
#include <private/qv4objectproto_p.h>
#include <private/qv4qobjectwrapper_p.h>
#include <private/qv4symbol_p.h>
+ Include dependency graph for qqmllistwrapper.cpp:

Go to the source code of this file.

Classes

struct  ListWrapperObject
 
struct  QmlListWrapperOwnPropertyKeyIterator
 

Functions

 DEFINE_OBJECT_VTABLE (QmlListWrapper)
 
static void setArrayData (Heap::QmlListWrapper *d)
 
static void appendWrapped (QQmlListProperty< QObject > *p, QObject *o)
 
static qsizetype countWrapped (QQmlListProperty< QObject > *p)
 
static QObjectatWrapped (QQmlListProperty< QObject > *p, qsizetype i)
 
static void clearWrapped (QQmlListProperty< QObject > *p)
 
static void replaceWrapped (QQmlListProperty< QObject > *p, qsizetype i, QObject *o)
 
static void removeLastWrapped (QQmlListProperty< QObject > *p)
 
template<typename Iterate >
ReturnedValue firstOrLastIndexOf (const FunctionObject *b, const Value *thisObject, const Value *argv, int argc, Iterate iterate)
 

Function Documentation

◆ appendWrapped()

static void appendWrapped ( QQmlListProperty< QObject > * p,
QObject * o )
static

Definition at line 51 of file qqmllistwrapper.cpp.

References o, Q_UNLIKELY, QV4::ArrayData::realloc(), and QV4::QObjectWrapper::wrap().

Referenced by QV4::Heap::QmlListWrapper::init().

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

◆ atWrapped()

static QObject * atWrapped ( QQmlListProperty< QObject > * p,
qsizetype i )
static

Definition at line 73 of file qqmllistwrapper.cpp.

References get(), and i.

Referenced by QV4::Heap::QmlListWrapper::init().

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

◆ clearWrapped()

static void clearWrapped ( QQmlListProperty< QObject > * p)
static

Definition at line 80 of file qqmllistwrapper.cpp.

Referenced by QV4::Heap::QmlListWrapper::init().

+ Here is the caller graph for this function:

◆ countWrapped()

static qsizetype countWrapped ( QQmlListProperty< QObject > * p)
static

Definition at line 67 of file qqmllistwrapper.cpp.

Referenced by QV4::Heap::QmlListWrapper::init().

+ Here is the caller graph for this function:

◆ DEFINE_OBJECT_VTABLE()

DEFINE_OBJECT_VTABLE ( QmlListWrapper )

◆ firstOrLastIndexOf()

template<typename Iterate >
ReturnedValue firstOrLastIndexOf ( const FunctionObject * b,
const Value * thisObject,
const Value * argv,
int argc,
Iterate iterate )

Definition at line 536 of file qqmllistwrapper.cpp.

References QV4::Value::as(), QV4::Scope::engine, property, RETURN_UNDEFINED, THROW_TYPE_ERROR, QV4::ExecutionEngine::throwTypeError(), QV4::Value::toObject(), and wrapper().

Referenced by QV4::PropertyListPrototype::method_indexOf(), and QV4::PropertyListPrototype::method_lastIndexOf().

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

◆ removeLastWrapped()

static void removeLastWrapped ( QQmlListProperty< QObject > * p)
static

Definition at line 93 of file qqmllistwrapper.cpp.

Referenced by QV4::Heap::QmlListWrapper::init().

+ Here is the caller graph for this function:

◆ replaceWrapped()

static void replaceWrapped ( QQmlListProperty< QObject > * p,
qsizetype i,
QObject * o )
static

Definition at line 86 of file qqmllistwrapper.cpp.

References i, o, and QV4::QObjectWrapper::wrap().

Referenced by QV4::Heap::QmlListWrapper::init().

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

◆ setArrayData()

static void setArrayData ( Heap::QmlListWrapper * d)
static

Definition at line 25 of file qqmllistwrapper.cpp.

References d, and o.

Referenced by QV4::Heap::DECLARE_HEAP_OBJECT().

+ Here is the caller graph for this function: