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

Function _wrap_StringList_assign

swig/python/export_wrap.cpp:11634–11677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11632
11633
11634SWIGINTERN PyObject *_wrap_StringList_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11635 PyObject *resultobj = 0;
11636 std::vector< std::string > *arg1 = (std::vector< std::string > *) 0 ;
11637 std::vector< std::string >::size_type arg2 ;
11638 std::vector< std::string >::value_type *arg3 = 0 ;
11639 void *argp1 = 0 ;
11640 int res1 = 0 ;
11641 size_t val2 ;
11642 int ecode2 = 0 ;
11643 int res3 = SWIG_OLDOBJ ;
11644 PyObject * obj0 = 0 ;
11645 PyObject * obj1 = 0 ;
11646 PyObject * obj2 = 0 ;
11647
11648 if (!PyArg_ParseTuple(args,(char *)"OOO:StringList_assign",&obj0,&obj1,&obj2)) SWIG_fail;
11649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0 | 0 );
11650 if (!SWIG_IsOK(res1)) {
11651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringList_assign" "', argument " "1"" of type '" "std::vector< std::string > *""'");
11652 }
11653 arg1 = reinterpret_cast< std::vector< std::string > * >(argp1);
11654 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
11655 if (!SWIG_IsOK(ecode2)) {
11656 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StringList_assign" "', argument " "2"" of type '" "std::vector< std::string >::size_type""'");
11657 }
11658 arg2 = static_cast< std::vector< std::string >::size_type >(val2);
11659 {
11660 std::string *ptr = (std::string *)0;
11661 res3 = SWIG_AsPtr_std_string(obj2, &ptr);
11662 if (!SWIG_IsOK(res3)) {
11663 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringList_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
11664 }
11665 if (!ptr) {
11666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StringList_assign" "', argument " "3"" of type '" "std::vector< std::string >::value_type const &""'");
11667 }
11668 arg3 = ptr;
11669 }
11670 (arg1)->assign(arg2,(std::vector< std::string >::value_type const &)*arg3);
11671 resultobj = SWIG_Py_Void();
11672 if (SWIG_IsNewObj(res3)) delete arg3;
11673 return resultobj;
11674fail:
11675 if (SWIG_IsNewObj(res3)) delete arg3;
11676 return NULL;
11677}
11678
11679
11680SWIGINTERN PyObject *_wrap_StringList_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {

Callers

nothing calls this directly

Calls 4

SWIG_AsVal_size_tFunction · 0.85
SWIG_AsPtr_std_stringFunction · 0.85
SWIG_Py_VoidFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected