![]() |
Qt 6.x
The Qt SDK
|
#include <qv4estable_p.h>
Public Member Functions | |
ESTable () | |
~ESTable () | |
void | markObjects (MarkStack *s, bool isWeakMap) |
void | clear () |
void | set (const Value &k, const Value &v) |
bool | has (const Value &k) const |
ReturnedValue | get (const Value &k, bool *hasValue=nullptr) const |
bool | remove (const Value &k) |
uint | size () const |
void | iterate (uint idx, Value *k, Value *v) |
void | removeUnmarkedKeys () |
Definition at line 25 of file qv4estable_p.h.
ESTable::ESTable | ( | ) |
Definition at line 16 of file qv4estable.cpp.
ESTable::~ESTable | ( | ) |
Definition at line 25 of file qv4estable.cpp.
void ESTable::clear | ( | ) |
Definition at line 46 of file qv4estable.cpp.
ReturnedValue ESTable::get | ( | const Value & | k, |
bool * | hasValue = nullptr |
||
) | const |
Definition at line 96 of file qv4estable.cpp.
References QV4::StaticValue::asReturnedValue(), i, and QV4::Encode::undefined().
bool ESTable::has | ( | const Value & | k | ) | const |
Definition at line 84 of file qv4estable.cpp.
References i.
Definition at line 139 of file qv4estable.cpp.
References Q_ASSERT.
Definition at line 35 of file qv4estable.cpp.
References i, and QV4::Value::mark().
Referenced by QV4::Heap::MapObject::markObjects(), and QV4::Heap::SetObject::markObjects().
bool ESTable::remove | ( | const Value & | k | ) |
Definition at line 112 of file qv4estable.cpp.
void ESTable::removeUnmarkedKeys | ( | ) |
Definition at line 148 of file qv4estable.cpp.
Definition at line 53 of file qv4estable.cpp.
References QV4::StaticValue::doubleValue(), QV4::Value::fromDouble(), i, and QV4::StaticValue::isDouble().
uint ESTable::size | ( | ) | const |
Definition at line 132 of file qv4estable.cpp.