KJS::List
KJS::List Class Reference
#include <list.h>
Public Member Functions | |
List (const List &b) | |
void | append (JSValue *val) |
JSValue * | at (int i) const |
JSValue * | atUnchecked (int i) const |
ListIterator | begin () const |
void | clear () |
List | copy () const |
List | copyTail () const |
ListIterator | end () const |
bool | isEmpty () const |
List & | operator= (const List &) |
JSValue * | operator[] (int i) const |
void | reset () |
int | size () const |
Static Public Member Functions | |
static const List & | empty () |
static void | markProtectedLists () |
Detailed Description
Native list type.
List is a native ECMAScript type. List values are only used for intermediate results of expression evaluation and cannot be stored as properties of objects.
The list is explicitly shared. Note that while copyTail() returns a copy of the list the referenced objects are still shared.
Member Function Documentation
◆ append()
|
inline |
◆ at()
|
inline |
◆ begin()
|
inline |
- Returns
- A KJS::ListIterator pointing to the first element.
◆ clear()
|
inline |
◆ copy()
◆ copyTail()
List KJS::List::copyTail | ( | ) | const |
◆ empty()
|
static |
◆ end()
|
inline |
- Returns
- A KJS::ListIterator pointing to the last element.
◆ isEmpty()
|
inline |
◆ operator[]()
|
inline |
◆ size()
|
inline |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 03:59:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Dec 1 2023 03:59:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.