• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/swig-12/Source/Swig/

Lines Matching defs:self

371  * self is an argument that defines how to handle the first argument. Normally,
376 static String *Swig_cmethod_call(const_String_or_char_ptr name, ParmList *parms, const_String_or_char_ptr self, String *explicit_qualifier, SwigType *director_type) {
387 if (!self)
388 self = (char *) "(this)->";
389 Append(func, self);
609 Replaceall(unref, "$self", pname);
627 Replaceall(ref, "$self", lname);
683 String *Swig_cmemberset_call(const_String_or_char_ptr name, SwigType *type, String *self, int varcref) {
688 if (!self)
689 self = NewString("(this)->");
691 self = NewString(self);
692 Replaceall(self, "this", pname0);
696 Printf(func, "if (%s) %s%s = %s", pname0, self, name, dref);
699 Printf(func, "if (%s && sizeof(int) == sizeof(%s%s)) *(int*)(void*)&(%s%s) = %s", pname0, self, name, self, name, pname1);
702 Delete(self);
718 String *Swig_cmemberget_call(const_String_or_char_ptr name, SwigType *t, String *self, int varcref) {
722 if (!self)
723 self = NewString("(this)->");
725 self = NewString(self);
726 Replaceall(self, "this", pname0);
729 Printf(func, "%s (%s%s)", call, self, name);
730 Delete(self);
744 static String *extension_code(const String *function_name, ParmList *parms, SwigType *return_type, const String *code, int cplusplus, const String *self) {
750 if (self)
751 Replaceall(body, "$self", self);
767 int Swig_add_extension_code(Node *n, const String *function_name, ParmList *parms, SwigType *return_type, const String *code, int cplusplus, const String *self) {
768 String *body = extension_code(function_name, parms, return_type, code, cplusplus, self);
786 String *self = 0;
788 /* If smart pointer, change self dereferencing */
790 self = NewString("(*this)->");
806 p = NewParm(type, "self");
807 Setattr(p, "self", "1");
810 Disable the 'this' ownership in 'self' to manage inplace
815 Here the 'self' parameter ownership needs to be disabled since
823 %feature("self:disown") *::operator+=;
832 if (GetFlag(n, "feature:self:disown")) {
860 call = Swig_cmethod_call(explicitcall_name ? explicitcall_name : name, p, self, explicit_qualifier, director_type);
873 String *call_extra = Swig_cmethod_call(name, p, self, 0, director_type);
910 Swig_add_extension_code(n, mangled, p, type, code, cparse_cplusplus, "self");
963 Delete(self);
1060 Swig_add_extension_code(n, mangled, parms, type, code, cparse_cplusplus, "self");
1158 p = NewParm(type, "self");
1159 Setattr(p, "self", "1");
1173 Swig_add_extension_code(n, mangled, p, type, code, cparse_cplusplus, "self");
1220 String *self = 0;
1226 self = NewString("(*this)->");
1229 self = NewStringf("darg->");
1241 parms = NewParm(t, "self");
1242 Setattr(parms, "self", "1");
1262 Swig_add_extension_code(n, mangled, parms, void_type, code, cparse_cplusplus, "self");
1270 *call = Swig_cmemberset_call(name, type, self, varcref);
1283 Delete(self);
1301 String *self = 0;
1310 self = NewStringf("%s::", base);
1312 self = NewString("(*this)->");
1316 self = NewStringf("darg->");
1328 parms = NewParm(t, "self");
1329 Setattr(parms, "self", "1");
1341 Swig_add_extension_code(n, mangled, parms, ty, code, cparse_cplusplus, "self");
1349 String *call = Swig_cmemberget_call(name, type, self, varcref);