Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4::ESTable Class Reference

#include <qv4estable_p.h>

+ Collaboration diagram for QV4::ESTable:

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 ()
 

Detailed Description

Definition at line 25 of file qv4estable_p.h.

Constructor & Destructor Documentation

◆ ESTable()

ESTable::ESTable ( )

Definition at line 16 of file qv4estable.cpp.

◆ ~ESTable()

ESTable::~ESTable ( )

Definition at line 25 of file qv4estable.cpp.

Member Function Documentation

◆ clear()

void ESTable::clear ( )

Definition at line 46 of file qv4estable.cpp.

◆ get()

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().

+ Here is the call graph for this function:

◆ has()

bool ESTable::has ( const Value k) const

Definition at line 84 of file qv4estable.cpp.

References i.

◆ iterate()

void ESTable::iterate ( uint  idx,
Value k,
Value v 
)

Definition at line 139 of file qv4estable.cpp.

References Q_ASSERT.

◆ markObjects()

void ESTable::markObjects ( MarkStack s,
bool  isWeakMap 
)

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().

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

◆ remove()

bool ESTable::remove ( const Value k)

Definition at line 112 of file qv4estable.cpp.

◆ removeUnmarkedKeys()

void ESTable::removeUnmarkedKeys ( )

Definition at line 148 of file qv4estable.cpp.

References o, and Q_ASSERT.

◆ set()

void ESTable::set ( const Value k,
const Value v 
)

Definition at line 53 of file qv4estable.cpp.

References QV4::StaticValue::doubleValue(), QV4::Value::fromDouble(), i, and QV4::StaticValue::isDouble().

+ Here is the call graph for this function:

◆ size()

uint ESTable::size ( ) const

Definition at line 132 of file qv4estable.cpp.


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