Discussion:
[Swig-user] Multiple "cscode" typemaps?
Jeremy Cowles
2016-11-06 07:22:13 UTC
Permalink
Is it possible to have multiple cscode typemaps?

My use case is that I want to define part of it in a macro and the other
part in the local class wrapping, for example to have a common macro to
wrap operator==.

Thanks!

--
Jeremy
Jeremy Cowles
2016-11-07 04:50:19 UTC
Permalink
Ah, ok, thanks
As per my experience, having multiple cscode for the same Class is not
allowed in SWIG. Only the last cscode executed will have the effect and
will override all the previous cscode effects.
I also wanted this feature to be enabled. But I got a reply from the list
saying, this feature is currently not supported.
Thanks and Best Regards,
N Ravi
--------- *Original Message* ---------
*Date* : 2016-11-06 12:53 (GMT+5:30)
*Title* : [Swig-user] Multiple "cscode" typemaps?
Is it possible to have multiple cscode typemaps?
My use case is that I want to define part of it in a macro and the other
part in the local class wrapping, for example to have a common macro to
wrap operator==.
Thanks!
--
Jeremy
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Swig-user mailing list
https://lists.sourceforge.net/lists/listinfo/swig-user
William S Fulton
2016-11-07 18:13:52 UTC
Permalink
This keeps coming up and can be improved upon fairly easily. I'll see if I
can enhance SWIG in the next few days.

William
Post by Jeremy Cowles
Ah, ok, thanks
As per my experience, having multiple cscode for the same Class is not
allowed in SWIG. Only the last cscode executed will have the effect and
will override all the previous cscode effects.
I also wanted this feature to be enabled. But I got a reply from the list
saying, this feature is currently not supported.
Thanks and Best Regards,
N Ravi
--------- *Original Message* ---------
*Date* : 2016-11-06 12:53 (GMT+5:30)
*Title* : [Swig-user] Multiple "cscode" typemaps?
Is it possible to have multiple cscode typemaps?
My use case is that I want to define part of it in a macro and the other
part in the local class wrapping, for example to have a common macro to
wrap operator==.
Thanks!
--
Jeremy
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Swig-user mailing list
https://lists.sourceforge.net/lists/listinfo/swig-user
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Swig-user mailing list
https://lists.sourceforge.net/lists/listinfo/swig-user
William S Fulton
2017-01-15 17:22:33 UTC
Permalink
I've implemented a new directive called %proxycode which if used within a
%extetnd allows you to do the equivalent that the cscode for C# (or
javacode for Java) typemaps did, but can be used multiple times for one
class. This will be available in swig-3.0.12. Some documentation in git is
here:
https://rawgit.com/swig/swig/master/Doc/Manual/Java.html#Java_proxycode

William
Post by William S Fulton
This keeps coming up and can be improved upon fairly easily. I'll see if I
can enhance SWIG in the next few days.
William
Post by Jeremy Cowles
Ah, ok, thanks
As per my experience, having multiple cscode for the same Class is not
allowed in SWIG. Only the last cscode executed will have the effect and
will override all the previous cscode effects.
I also wanted this feature to be enabled. But I got a reply from the
list saying, this feature is currently not supported.
Thanks and Best Regards,
N Ravi
--------- *Original Message* ---------
*Date* : 2016-11-06 12:53 (GMT+5:30)
*Title* : [Swig-user] Multiple "cscode" typemaps?
Is it possible to have multiple cscode typemaps?
My use case is that I want to define part of it in a macro and the other
part in the local class wrapping, for example to have a common macro to
wrap operator==.
Thanks!
--
Jeremy
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Swig-user mailing list
https://lists.sourceforge.net/lists/listinfo/swig-user
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Swig-user mailing list
https://lists.sourceforge.net/lists/listinfo/swig-user
Jeremy Cowles
2017-05-29 19:01:21 UTC
Permalink
Cool!

I actually just hit this again -- I'll give it a try and let you know how
it goes.
Post by William S Fulton
I've implemented a new directive called %proxycode which if used within a
%extetnd allows you to do the equivalent that the cscode for C# (or
javacode for Java) typemaps did, but can be used multiple times for one
class. This will be available in swig-3.0.12. Some documentation in git is
here: https://rawgit.com/swig/swig/master/Doc/Manual/Java.html#
Java_proxycode
William
Post by William S Fulton
This keeps coming up and can be improved upon fairly easily. I'll see if
I can enhance SWIG in the next few days.
William
Post by Jeremy Cowles
Ah, ok, thanks
As per my experience, having multiple cscode for the same Class is not
allowed in SWIG. Only the last cscode executed will have the effect and
will override all the previous cscode effects.
I also wanted this feature to be enabled. But I got a reply from the
list saying, this feature is currently not supported.
Thanks and Best Regards,
N Ravi
--------- *Original Message* ---------
*Date* : 2016-11-06 12:53 (GMT+5:30)
*Title* : [Swig-user] Multiple "cscode" typemaps?
Is it possible to have multiple cscode typemaps?
My use case is that I want to define part of it in a macro and the
other part in the local class wrapping, for example to have a common macro
to wrap operator==.
Thanks!
--
Jeremy
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Swig-user mailing list
https://lists.sourceforge.net/lists/listinfo/swig-user
------------------------------------------------------------
------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Swig-user mailing list
https://lists.sourceforge.net/lists/listinfo/swig-user
RAVI NANJUNDAPPA
2016-11-08 06:48:25 UTC
Permalink
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
RAVI NANJUNDAPPA
2016-11-08 09:46:35 UTC
Permalink
Hi,

Do we have any swig typemaps for conversion (marshalling) of function/method return types ?


Thanks and Best Regards,
N Ravi
 
RAVI NANJUNDAPPA
2016-11-08 09:47:17 UTC
Permalink
Hi, 
 
Do we have any swig typemaps for conversion (marshalling) of function/method return types ?
 
 
Thanks and Best Regards, 
N Ravi
 
William S Fulton
2016-11-26 16:58:11 UTC
Permalink
Use the 'csout' typemap for which there are examples in the docs.

William
Post by RAVI NANJUNDAPPA
Hi,
Do we have any swig typemaps for conversion (marshalling)
of function/method return types ?
Thanks and Best Regards,
N Ravi
Loading...