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

Function _wrap_Item_begin

swig/python/export_wrap.cpp:7323–7343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7321
7322
7323SWIGINTERN PyObject *_wrap_Item_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7324 PyObject *resultobj = 0;
7325 std::vector< CRFSuite::Attribute > *arg1 = (std::vector< CRFSuite::Attribute > *) 0 ;
7326 void *argp1 = 0 ;
7327 int res1 = 0 ;
7328 PyObject * obj0 = 0 ;
7329 std::vector< CRFSuite::Attribute >::iterator result;
7330
7331 if (!PyArg_ParseTuple(args,(char *)"O:Item_begin",&obj0)) SWIG_fail;
7332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CRFSuite__Attribute_std__allocatorT_CRFSuite__Attribute_t_t, 0 | 0 );
7333 if (!SWIG_IsOK(res1)) {
7334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Item_begin" "', argument " "1"" of type '" "std::vector< CRFSuite::Attribute > *""'");
7335 }
7336 arg1 = reinterpret_cast< std::vector< CRFSuite::Attribute > * >(argp1);
7337 result = (arg1)->begin();
7338 resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CRFSuite::Attribute >::iterator & >(result)),
7339 swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
7340 return resultobj;
7341fail:
7342 return NULL;
7343}
7344
7345
7346SWIGINTERN PyObject *_wrap_Item_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers

nothing calls this directly

Calls 2

make_output_iteratorFunction · 0.85
beginMethod · 0.45

Tested by

no test coverage detected