Lines Matching full:feature
17 To dispatch to a statically defined function, use %feature("python:<slot>"),
31 %feature("python:tp_hash") MyClass "myHashFunc";
37 use %feature("python:slot"). For example:
45 %feature("python:slot", "tp_hash", functype="hashfunc") MyClass::myHashFunc;
51 the "functype" attribute of the feature enables SWIG to generate
61 operation, you may use %feature("python:slot") like this:
69 %feature("python:slot", "Py_LT") MyClass::lessThan;
92 #define %pybinoperator(pyname,oper,functp,slt) %rename(pyname) oper; %pythonmaybecall oper; %feature("python:slot", #slt, functype=#functp) oper; %feature("python:slot", #slt, functype=#functp) pyname;
93 #define %pycompare(pyname,oper,comptype) %rename(pyname) oper; %pythonmaybecall oper; %feature("python:compare", #comptype) oper; %feature("python:compare", #comptype) pyname;
120 %feature("python:slot", "nb_truediv", functype="binaryfunc") *::operator/;
124 %feature("python:slot", "nb_invert", functype="unaryfunc") *::operator~;
126 %feature("python:slot", "tp_call", functype="ternarycallfunc") *::operator();
131 %feature("shadow") *::operator bool %{
157 %feature("del") *::Operator;
158 %feature("new") *::Operator;
177 %feature("del","") A::operator+=;
178 %feature("new","") A::operator+=;
183 %feature("del","") *::operator+=;
184 %feature("new","") *::operator+=;
189 #define %pyinplaceoper(SwigPyOper, Oper, functp, slt) %delobject Oper; %newobject Oper; %feature("python:slot", #slt, functype=#functp) Oper; %rename(SwigPyOper) Oper