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

Function _wrap_StringList_back

swig/python/export_wrap.cpp:11612–11631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11610
11611
11612SWIGINTERN PyObject *_wrap_StringList_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11613 PyObject *resultobj = 0;
11614 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
11615 void *argp1 = 0 ;
11616 int res1 = 0 ;
11617 PyObject * obj0 = 0 ;
11618 std::vector< std::string >::value_type *result = 0 ;
11619
11620 if (!PyArg_ParseTuple(args,(char *)"O:StringList_back",&obj0)) SWIG_fail;
11621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
11622 if (!SWIG_IsOK(res1)) {
11623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringList_back" "', argument " "1"" of type '" "std::vector< std::string > const *""'");
11624 }
11625 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
11626 result = (std::vector< std::string >::value_type *) &((std::vector< std::string > const *)arg1)->back();
11627 resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
11628 return resultobj;
11629fail:
11630 return NULL;
11631}
11632
11633
11634SWIGINTERN PyObject *_wrap_StringList_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers

nothing calls this directly

Calls 2

SWIG_From_std_stringFunction · 0.85
backMethod · 0.45

Tested by

no test coverage detected