Eneboo - Documentación para desarrolladores
|
#include <qsarray_object.h>
Métodos públicos | |
QSArrayClass (QSClass *b) | |
QString | name () const |
QString | toString (const QSObject *) const |
QSObject | toPrimitive (const QSObject *obj, const QSClass *cl) const |
QVariant | toVariant (const QSObject *obj, QVariant::Type) const |
QSObject | construct (const QSList &args) const |
QSObject | cast (const QSList &args) const |
virtual void | write (QSObject *objPtr, const QSMember &mem, const QSObject &val) const |
Métodos públicos estáticos | |
static uint | length (const QSObject *) |
static void | setLength (QSObject *, uint l) |
static QString | joinInternal (const QSObject &obj, const QString &sep) |
static QSObject | concat (QSEnv *) |
static QSObject | join (QSEnv *) |
static QSObject | pop (QSEnv *) |
static QSObject | push (QSEnv *) |
static QSObject | reverse (QSEnv *) |
static QSObject | shift (QSEnv *) |
static QSObject | slice (QSEnv *) |
static QSObject | sort (QSEnv *) |
static QSObject | splice (QSEnv *) |
static QSObject | unshift (QSEnv *) |
QSArrayClass::QSArrayClass | ( | QSClass * | b | ) |
Returns a string contain all elements of array o joined by the first element in args or ',' if unspecified.
Returns a string concatenating all members of this array seperated by sep.
Pop the last element of array o and return it. Returns undefined in case the array is empty.
Reverse the order of elements in array o and return the array.
Sets the length property of array object a to l.
Removes the first element from array o and returns it.
Returns the elements args[0] up to (but excluding) args[1] from array o. ### meaning of negative indices
Sort the array o. If an argument is given it is used as a compare function.
Array.splice(start, deleteCount [,item1 [,item2 [, ...]]]) deleteCount elements of array o at index start are replaced by the following arguments.
Reimplementado de QSClass.
QVariant QSArrayClass::toVariant | ( | const QSObject * | obj, |
QVariant::Type | pref | ||
) | const [virtual] |
Prepend each element to the array o preserving order.
void QSArrayClass::write | ( | QSObject * | objPtr, |
const QSMember & | mem, | ||
const QSObject & | val | ||
) | const [virtual] |
Reimplementado de QSWritableClass.