################################################################
# THE FOLLOWING CODE IS AUTOMATED, ANY MODIFICATION WILL BE LOST!
#
# Copyright (C) 2007 - 2012 by Dongxu Ma <dongxu _at_ cpan _dot_ org>
#
# This library is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
# See http://dev.perl.org/licenses/artistic.html
################################################################
MODULE = Qt::Script PACKAGE = Qt::Script::Template::T000
PROTOTYPES: DISABLE
# classname: QList<QScriptValue>
################################################################
####
#### PUBLIC MEMBER FUNCTIONS
####
################################################################
## QList<QScriptValue>()
## QList<QScriptValue>(const QList<QScriptValue> & l)
void
T000::new(...)
PREINIT:
QList<QScriptValue> *ret;
QList<QScriptValue> * arg10;
PPCODE:
switch(items) {
case 1:
{
if (1) {
ret = new QList<QScriptValue>();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::Template::T000", (void *)ret);
XSRETURN(1);
}
break;
}
case 2:
{
if (sv_isa(ST(1), "Qt::Script::Template::T000")) {
arg10 = reinterpret_cast<QList<QScriptValue> *>(SvIV((SV*)SvRV(ST(1))));
ret = new QList<QScriptValue>(*arg10);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::Template::T000", (void *)ret);
XSRETURN(1);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## ~QList<QScriptValue>()
void
T000::DESTROY()
CODE:
if(THIS != 0 && !SvREADONLY(SvRV(ST(0))))
delete THIS;
## void append(const QScriptValue & t)
## void append(const QList<QScriptValue> & t)
void
T000::append(...)
PREINIT:
QScriptValue * arg00;
QList<QScriptValue> * arg10;
PPCODE:
switch(items) {
case 2:
{
if (sv_isa(ST(1), "Qt::Script::QScriptValue")) {
arg00 = reinterpret_cast<QScriptValue *>(SvIV((SV*)SvRV(ST(1))));
(void)THIS->append(*arg00);
XSRETURN(0);
}
else if (sv_isa(ST(1), "Qt::Script::Template::T000")) {
arg10 = reinterpret_cast<QList<QScriptValue> *>(SvIV((SV*)SvRV(ST(1))));
(void)THIS->append(*arg10);
XSRETURN(0);
}
else
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
default:
Perl_croak(aTHX_ "wrong number/type of arguments passed in");
break;
}
## const QScriptValue & at(int i)
void
T000::at(...)
PREINIT:
int arg00;
PPCODE:
if (SvIOK(ST(1))) {
arg00 = (int)SvIV(ST(1));
const QScriptValue * ret = &THIS->at(arg00);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::QScriptValue", (void *)ret);
XSRETURN(1);
}
## void clear()
void
T000::clear(...)
PREINIT:
PPCODE:
if (1) {
(void)THIS->clear();
XSRETURN(0);
}
## void detach()
void
T000::detach(...)
PREINIT:
PPCODE:
if (1) {
(void)THIS->detach();
XSRETURN(0);
}
## void detachShared()
void
T000::detachShared(...)
PREINIT:
PPCODE:
if (1) {
(void)THIS->detachShared();
XSRETURN(0);
}
## void insert(int i, const QScriptValue & t)
void
T000::insert(...)
PREINIT:
int arg00;
QScriptValue * arg01;
PPCODE:
if (SvIOK(ST(1)) && sv_isa(ST(2), "Qt::Script::QScriptValue")) {
arg00 = (int)SvIV(ST(1));
arg01 = reinterpret_cast<QScriptValue *>(SvIV((SV*)SvRV(ST(2))));
(void)THIS->insert(arg00, *arg01);
XSRETURN(0);
}
## bool isDetached()
void
T000::isDetached(...)
PREINIT:
PPCODE:
if (1) {
bool ret = THIS->isDetached();
ST(0) = sv_newmortal();
ST(0) = boolSV(ret);
XSRETURN(1);
}
## bool isEmpty()
void
T000::isEmpty(...)
PREINIT:
PPCODE:
if (1) {
bool ret = THIS->isEmpty();
ST(0) = sv_newmortal();
ST(0) = boolSV(ret);
XSRETURN(1);
}
## bool isSharedWith(const QList<QScriptValue> & other)
void
T000::isSharedWith(...)
PREINIT:
QList<QScriptValue> * arg00;
PPCODE:
if (sv_isa(ST(1), "Qt::Script::Template::T000")) {
arg00 = reinterpret_cast<QList<QScriptValue> *>(SvIV((SV*)SvRV(ST(1))));
bool ret = THIS->isSharedWith(*arg00);
ST(0) = sv_newmortal();
ST(0) = boolSV(ret);
XSRETURN(1);
}
## void move(int from, int to)
void
T000::move(...)
PREINIT:
int arg00;
int arg01;
PPCODE:
if (SvIOK(ST(1)) && SvIOK(ST(2))) {
arg00 = (int)SvIV(ST(1));
arg01 = (int)SvIV(ST(2));
(void)THIS->move(arg00, arg01);
XSRETURN(0);
}
## QList<QScriptValue> operator=(const QList<QScriptValue> & l)
void
T000::operator_assign(...)
PREINIT:
QList<QScriptValue> * arg00;
PPCODE:
if (sv_isa(ST(1), "Qt::Script::Template::T000")) {
arg00 = reinterpret_cast<QList<QScriptValue> *>(SvIV((SV*)SvRV(ST(1))));
QList<QScriptValue> ret = THIS->operator=(*arg00);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::Template::T000", (void *)new QList<QScriptValue>(ret));
XSRETURN(1);
}
## QScriptValue & operator[](int i)
void
T000::operator_array(...)
PREINIT:
int arg00;
PPCODE:
if (SvIOK(ST(1))) {
arg00 = (int)SvIV(ST(1));
QScriptValue * ret = &THIS->operator[](arg00);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::QScriptValue", (void *)ret);
XSRETURN(1);
}
## void prepend(const QScriptValue & t)
void
T000::prepend(...)
PREINIT:
QScriptValue * arg00;
PPCODE:
if (sv_isa(ST(1), "Qt::Script::QScriptValue")) {
arg00 = reinterpret_cast<QScriptValue *>(SvIV((SV*)SvRV(ST(1))));
(void)THIS->prepend(*arg00);
XSRETURN(0);
}
## void removeAt(int i)
void
T000::removeAt(...)
PREINIT:
int arg00;
PPCODE:
if (SvIOK(ST(1))) {
arg00 = (int)SvIV(ST(1));
(void)THIS->removeAt(arg00);
XSRETURN(0);
}
## void replace(int i, const QScriptValue & t)
void
T000::replace(...)
PREINIT:
int arg00;
QScriptValue * arg01;
PPCODE:
if (SvIOK(ST(1)) && sv_isa(ST(2), "Qt::Script::QScriptValue")) {
arg00 = (int)SvIV(ST(1));
arg01 = reinterpret_cast<QScriptValue *>(SvIV((SV*)SvRV(ST(2))));
(void)THIS->replace(arg00, *arg01);
XSRETURN(0);
}
## void reserve(int size)
void
T000::reserve(...)
PREINIT:
int arg00;
PPCODE:
if (SvIOK(ST(1))) {
arg00 = (int)SvIV(ST(1));
(void)THIS->reserve(arg00);
XSRETURN(0);
}
## void setSharable(bool shrable)
void
T000::setSharable(...)
PREINIT:
bool arg00;
PPCODE:
if (1) {
arg00 = (bool)SvTRUE(ST(1));
(void)THIS->setSharable(arg00);
XSRETURN(0);
}
## int size()
void
T000::size(...)
PREINIT:
PPCODE:
if (1) {
int ret = THIS->size();
ST(0) = sv_newmortal();
sv_setiv(ST(0), (IV)ret);
XSRETURN(1);
}
## void swap(int i, int j)
void
T000::swap(...)
PREINIT:
int arg00;
int arg01;
PPCODE:
if (SvIOK(ST(1)) && SvIOK(ST(2))) {
arg00 = (int)SvIV(ST(1));
arg01 = (int)SvIV(ST(2));
(void)THIS->swap(arg00, arg01);
XSRETURN(0);
}
## QScriptValue takeAt(int i)
void
T000::takeAt(...)
PREINIT:
int arg00;
PPCODE:
if (SvIOK(ST(1))) {
arg00 = (int)SvIV(ST(1));
QScriptValue ret = THIS->takeAt(arg00);
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::QScriptValue", (void *)new QScriptValue(ret));
XSRETURN(1);
}
## QScriptValue takeFirst()
void
T000::takeFirst(...)
PREINIT:
PPCODE:
if (1) {
QScriptValue ret = THIS->takeFirst();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::QScriptValue", (void *)new QScriptValue(ret));
XSRETURN(1);
}
## QScriptValue takeLast()
void
T000::takeLast(...)
PREINIT:
PPCODE:
if (1) {
QScriptValue ret = THIS->takeLast();
ST(0) = sv_newmortal();
sv_setref_pv(ST(0), "Qt::Script::QScriptValue", (void *)new QScriptValue(ret));
XSRETURN(1);
}