/usr/share/swig/3.0.12/python
NameSizeModeActions
argcargv.i26420644editdlrm
attribute.i340644editdlrm
boost_shared_ptr.i162950644editdlrm
builtin.swg250160644editdlrm
carrays.i3380644editdlrm
ccomplex.i7630644editdlrm
cdata.i300644editdlrm
cmalloc.i320644editdlrm
cni.i420644editdlrm
complex.i800644editdlrm
cpointer.i330644editdlrm
cstring.i320644editdlrm
cwstring.i600644editdlrm
defarg.swg11540644editdlrm
director.swg106380644editdlrm
embed.i25300644editdlrm
exception.i1390644editdlrm
factory.i320644editdlrm
file.i10350644editdlrm
implicit.i2870644editdlrm
jstring.i17590644editdlrm
pyabc.i4180644editdlrm
pyapi.swg13390644editdlrm
pybackward.swg11620644editdlrm
pybuffer.i27820644editdlrm
pyclasses.swg34740644editdlrm
pycomplex.swg22430644editdlrm
pycontainer.swg297890644editdlrm
pydocs.swg11040644editdlrm
pyerrors.swg16890644editdlrm
pyfragments.swg5510644editdlrm
pyhead.swg57410644editdlrm
pyinit.swg135250644editdlrm
pyiterators.swg106500644editdlrm
pymacros.swg380644editdlrm
pyname_compat.i41240644editdlrm
pyopers.swg102230644editdlrm
pyprimtypes.swg80700644editdlrm
pyrun.swg531290644editdlrm
pyruntime.swg7950644editdlrm
pystdcommon.swg71020644editdlrm
pystrings.swg44220644editdlrm
python.swg20350644editdlrm
pythonkw.swg23550644editdlrm
pythreads.swg28640644editdlrm
pytuplehlp.swg3080644editdlrm
pytypemaps.swg32080644editdlrm
pyuserdir.swg63260644editdlrm
pywstrings.swg20970644editdlrm
std_alloc.i270644editdlrm
std_array.i36930644editdlrm
std_auto_ptr.i5850644editdlrm
std_basic_string.i28170644editdlrm
std_carray.i15830644editdlrm
std_char_traits.i330644editdlrm
std_common.i23190644editdlrm
std_complex.i4690644editdlrm
std_container.i580644editdlrm
std_deque.i6780644editdlrm
std_except.i350644editdlrm
std_ios.i660644editdlrm
std_iostream.i1070644editdlrm
std_list.i6680644editdlrm
std_map.i99750644editdlrm
std_multimap.i25780644editdlrm
std_multiset.i10850644editdlrm
std_pair.i61670644editdlrm
std_set.i14900644editdlrm
std_shared_ptr.i680644editdlrm
std_sstream.i290644editdlrm
std_streambuf.i310644editdlrm
std_string.i350644editdlrm
std_unordered_map.i86530644editdlrm
std_unordered_multimap.i31150644editdlrm
std_unordered_multiset.i14360644editdlrm
std_unordered_set.i17190644editdlrm
std_vector.i8860644editdlrm
std_vectora.i8290644editdlrm
std_wios.i260644editdlrm
std_wiostream.i1660644editdlrm
std_wsstream.i300644editdlrm
std_wstreambuf.i320644editdlrm
std_wstring.i630644editdlrm
stl.i1820644editdlrm
typemaps.i44530644editdlrm
wchar.i1860644editdlrm
Edit: /usr/share/swig/3.0.12/python/typemaps.i (4453B)
/* ----------------------------------------------------------------------------- * typemaps.i * * Pointer handling * These mappings provide support for input/output arguments and common * uses for C/C++ pointers. * ----------------------------------------------------------------------------- */ // INPUT typemaps. // These remap a C pointer to be an "INPUT" value which is passed by value // instead of reference. /* The following methods can be applied to turn a pointer into a simple "input" value. That is, instead of passing a pointer to an object, you would use a real value instead. int *INPUT short *INPUT long *INPUT long long *INPUT unsigned int *INPUT unsigned short *INPUT unsigned long *INPUT unsigned long long *INPUT unsigned char *INPUT bool *INPUT float *INPUT double *INPUT To use these, suppose you had a C function like this : double fadd(double *a, double *b) { return *a+*b; } You could wrap it with SWIG as follows : %include double fadd(double *INPUT, double *INPUT); or you can use the %apply directive : %include %apply double *INPUT { double *a, double *b }; double fadd(double *a, double *b); */ // OUTPUT typemaps. These typemaps are used for parameters that // are output only. The output value is appended to the result as // a list element. /* The following methods can be applied to turn a pointer into an "output" value. When calling a function, no input value would be given for a parameter, but an output value would be returned. In the case of multiple output values, they are returned in the form of a Python tuple. int *OUTPUT short *OUTPUT long *OUTPUT long long *OUTPUT unsigned int *OUTPUT unsigned short *OUTPUT unsigned long *OUTPUT unsigned long long *OUTPUT unsigned char *OUTPUT bool *OUTPUT float *OUTPUT double *OUTPUT For example, suppose you were trying to wrap the modf() function in the C math library which splits x into integral and fractional parts (and returns the integer part in one of its parameters).K: double modf(double x, double *ip); You could wrap it with SWIG as follows : %include double modf(double x, double *OUTPUT); or you can use the %apply directive : %include %apply double *OUTPUT { double *ip }; double modf(double x, double *ip); The Python output of the function would be a tuple containing both output values. */ // INOUT // Mappings for an argument that is both an input and output // parameter /* The following methods can be applied to make a function parameter both an input and output value. This combines the behavior of both the "INPUT" and "OUTPUT" methods described earlier. Output values are returned in the form of a Python tuple. int *INOUT short *INOUT long *INOUT long long *INOUT unsigned int *INOUT unsigned short *INOUT unsigned long *INOUT unsigned long long *INOUT unsigned char *INOUT bool *INOUT float *INOUT double *INOUT For example, suppose you were trying to wrap the following function : void neg(double *x) { *x = -(*x); } You could wrap it with SWIG as follows : %include void neg(double *INOUT); or you can use the %apply directive : %include %apply double *INOUT { double *x }; void neg(double *x); Unlike C, this mapping does not directly modify the input value (since this makes no sense in Python). Rather, the modified input value shows up as the return value of the function. Thus, to apply this function to a Python variable you might do this : x = neg(x) Note : previous versions of SWIG used the symbol 'BOTH' to mark input/output arguments. This is still supported, but will be slowly phased out in future releases. */ %include