Eneboo - Documentación para desarrolladores
|
Native list type. Más...
#include <qstypes.h>
Métodos públicos | |
QSList () | |
QSList (const QSObject &first) | |
~QSList () | |
void | append (const QSObject &obj) |
void | prepend (const QSObject &obj) |
void | removeFirst () |
void | removeLast () |
void | remove (const QSObject &obj) |
void | clear () |
QSList * | copy () const |
QSListIterator | begin () const |
QSListIterator | end () const |
bool | isEmpty () const |
int | size () const |
QSObject | at (int i) const |
QSObject | operator[] (int i) const |
Amigas | |
class | QSListIterator |
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 copy() returns a deep copy of the list the referenced objects are still shared.
QSList::QSList | ( | ) | [inline] |
Constructor.
QSList::QSList | ( | const QSObject & | first | ) | [inline] |
QSList::~QSList | ( | ) | [inline] |
Destructor.
void QSList::append | ( | const QSObject & | obj | ) | [inline] |
Append an object to the end of the list.
obj | Pointer to object. |
Retrieve an element at an indexed position. If you want to iterate trough the whole list using QSListIterator will be faster.
i | List index. |
QSListIterator QSList::begin | ( | ) | const [inline] |
void QSList::clear | ( | void | ) | [inline] |
Remove all elements from the list.
QSList * QSList::copy | ( | ) | const [inline] |
Returns a deep copy of the list. Ownership is passed to the user who is responsible for deleting the list then.
QSListIterator QSList::end | ( | ) | const [inline] |
bool QSList::isEmpty | ( | void | ) | const [inline] |
void QSList::prepend | ( | const QSObject & | obj | ) | [inline] |
Insert an object at the beginning of the list.
obj | Pointer to object. |
void QSList::remove | ( | const QSObject & | obj | ) | [inline] |
void QSList::removeFirst | ( | ) | [inline] |
Remove the element at the beginning of the list.
void QSList::removeLast | ( | ) | [inline] |
Remove the element at the end of the list.
int QSList::size | ( | ) | const [inline] |
friend class QSListIterator [friend] |