MCPcopy Create free account
hub / github.com/chokkan/crfsuite / _wrap_SwigPyIterator_incr__SWIG_0

Function _wrap_SwigPyIterator_incr__SWIG_0

swig/python/export_wrap.cpp:5508–5546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5506
5507
5508SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5509 PyObject *resultobj = 0;
5510 swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
5511 size_t arg2 ;
5512 void *argp1 = 0 ;
5513 int res1 = 0 ;
5514 size_t val2 ;
5515 int ecode2 = 0 ;
5516 PyObject * obj0 = 0 ;
5517 PyObject * obj1 = 0 ;
5518 swig::SwigPyIterator *result = 0 ;
5519
5520 if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_fail;
5521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
5522 if (!SWIG_IsOK(res1)) {
5523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
5524 }
5525 arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
5526 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
5527 if (!SWIG_IsOK(ecode2)) {
5528 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'");
5529 }
5530 arg2 = static_cast< size_t >(val2);
5531 try {
5532 result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
5533 }
5534 catch(swig::stop_iteration &_e) {
5535 {
5536 (void)_e;
5537 SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
5538 SWIG_fail;
5539 }
5540 }
5541
5542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
5543 return resultobj;
5544fail:
5545 return NULL;
5546}
5547
5548
5549SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers 1

Calls 3

SWIG_AsVal_size_tFunction · 0.85
SWIG_Py_VoidFunction · 0.85
incrMethod · 0.45

Tested by

no test coverage detected