<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig">
    <title>gmane.comp.programming.swig</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19669"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19668"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19667"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19666"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19665"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19664"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19663"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19662"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19661"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19660"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19659"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19658"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19657"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19656"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19655"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19654"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19653"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19652"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19651"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.programming.swig/19650"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19669">
    <title>Can SWIG Python use Python 3 common ABI?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19669</link>
    <description>&lt;pre&gt;Since Python 3.2, python has a common ABI (PEP 384). This can be used to 
create Python binary extensions that can work with all successors of 
Python 3.2 with no compilation. The exact same binary extension can be 
used, which is very interesting for deployment.

I tried to compile my SWIG generated extension with the corresponding 
macro Py_LIMITED_API but this unfortunately does not compile. Lots of 
errors are generated for undefined functions and undeclared identifiers.

Is there any plan to support this?

Best regards
Didier


------------------------------------------------------------------------------
Try New Relic Now &amp;amp; We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, &amp;amp; servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
&lt;/pre&gt;</description>
    <dc:creator>Didier Trosset</dc:creator>
    <dc:date>2013-05-23T09:50:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19668">
    <title>Re: python varargs using typemap not working well, a few issues</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19668</link>
    <description>&lt;pre&gt;The last two are certainly bugs. Feel free to raise a bug report.

William


------------------------------------------------------------------------------
Try New Relic Now &amp;amp; We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, &amp;amp; servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2013-05-23T06:04:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19667">
    <title>Re: std::vector of class with no default constructor</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19667</link>
    <description>&lt;pre&gt;
BC&amp;gt; I have a struct that contains a member that is a vector of a class with no default constructor that is not compiling. I condensed the problem into the short example below that gives a few of the following compile errors:
BC&amp;gt;  error: no matching function for call to Instrument::Instrument()
BC&amp;gt; I tried applying what is said about this in Section 6.6.1 "Constructors and destructors" but without success.
BC&amp;gt; Can someone suggest how I might get around this?

 Hello,

 I use the following before the %template directive for the classes without
default ctor:

        %ignore std::vector&amp;lt;CppClassName&amp;gt;::vector(size_type);
        %ignore std::vector&amp;lt;CppClassName&amp;gt;::resize;
 
 HTH,
VZ
------------------------------------------------------------------------------
Try New Relic Now &amp;amp; We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, &amp;amp; servers with just a few lines of code. Tr&lt;/pre&gt;</description>
    <dc:creator>Vadim Zeitlin</dc:creator>
    <dc:date>2013-05-22T16:13:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19666">
    <title>std::vector of class with no default constructor</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19666</link>
    <description>&lt;pre&gt;Hi,

I have a struct that contains a member that is a vector of a class with no default constructor that is not compiling. I condensed the problem into the short example below that gives a few of the following compile errors:
 error: no matching function for call to Instrument::Instrument()
I tried applying what is said about this in Section 6.6.1 "Constructors and destructors" but without success.
Can someone suggest how I might get around this?
Here's the example code:


//---------------------------------------------------------
%module Band
%feature("autodoc", "1");

//%feature("valuewrapper") Instrument;
//%clearnodefaultctor;
//%nodefaultctor Instrument;
//%feature("notabstract") Instrument;

%{
#define SWIG_FILE_WITH_INIT
#include &amp;lt;vector&amp;gt;

class Instrument
{
 public:
 Instrument(int aNote) : theNote(aNote) {}
 int play() {return theNote;}
 private:
 int theNote;
};

struct Section
{
 std::vector&amp;lt;Instrument&amp;gt; theInstruments;
};
%}

%include "std_vector.i"

typedef std::list&amp;lt;PG::L2::LS::DateTime&amp;gt; DateTi&lt;/pre&gt;</description>
    <dc:creator>Botos, Christopher</dc:creator>
    <dc:date>2013-05-22T15:30:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19665">
    <title>Re: Bool and Integer types in SWIG-Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19665</link>
    <description>&lt;pre&gt;After some other tests, it seems to work with this piece of code:

%typemap(typecheck, precedence=SWIG_TYPECHECK_VOIDPTR) bool
{
    $1 = PyBool_Check($input) ? 1 : 0;
}

I'm not sure I understand why the SWIG_TYPECHECK_**BOOL is not working...

Thanks anyway Jim!


On Wed, May 22, 2013 at 10:56 AM, Olivier Voyer &amp;lt;olivier.voyer&amp;lt; at &amp;gt;gmail.com&amp;gt;wrote:




&lt;/pre&gt;</description>
    <dc:creator>Olivier Voyer</dc:creator>
    <dc:date>2013-05-22T15:28:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19664">
    <title>Re: Bool and Integer types in SWIG-Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19664</link>
    <description>&lt;pre&gt;Hi Jim,

Thank you for your answer. I tried it but it doesn't seem to work...
integer type has still the precedence over the boolean type. Is there
something else to do? Some additional directives or ".i" files to include
to make it work?

Thank you again!


On Fri, May 17, 2013 at 8:43 PM, Jim Bosch &amp;lt;talljimbo&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



&lt;/pre&gt;</description>
    <dc:creator>Olivier Voyer</dc:creator>
    <dc:date>2013-05-22T14:56:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19663">
    <title>Re: Bool and Integer types in SWIG-Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19663</link>
    <description>&lt;pre&gt;
I'm glad you bumped your previous message.

We ran into the same problem, and I do have a workaround for you (at 
least one that worked for us); this typemap should make it so only 
actual bools ("True" or "False") will be usable in a C++ bool argument, 
in any code that is declared to swig after the typemap:

%typemap(typecheck, precedence=SWIG_TYPECHECK_BOOL, noblock=1) bool {
     $1 = PyBool_Check($input) ? 1 : 0;
}


Jim


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>Jim Bosch</dc:creator>
    <dc:date>2013-05-18T00:43:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19662">
    <title>Re: Bool and Integer types in SWIG-Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19662</link>
    <description>&lt;pre&gt;Nobody else has this problem?

Le 2013-04-10 à 16:31, Olivier Voyer &amp;lt;olivier.voyer&amp;lt; at &amp;gt;gmail.com&amp;gt; a écrit :

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
&lt;/pre&gt;</description>
    <dc:creator>Olivier Voyer</dc:creator>
    <dc:date>2013-05-17T23:10:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19661">
    <title>Re: C/C++ to Java : Use a Java method from C by overloading a C++ object</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19661</link>
    <description>&lt;pre&gt;
On 30/04/13 16:29, Nourdine AHAMADA wrote:
Your code is incomplete and does not compile. Please post a working 
version. One thing I can see wrong is '%feature("director") 
Log_Interface' should be before the class definition not after it. You 
should also the latest version - swig-2.0.9.

William

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2013-05-17T18:10:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19660">
    <title>Are there any SWIG users within Brisbane?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19660</link>
    <description>&lt;pre&gt;Hi, I am attempting to wrap a C API for Java. It is an open source database.
This is causing me quite a headache, so are there any developers in the
general Brisbane area that would be interested in helping.

I do not believe the work to be extensive to someone with experience.



--
View this message in context: http://swig.10945.n7.nabble.com/Are-there-any-SWIG-users-within-Brisbane-tp13241.html
Sent from the swig-user mailing list archive at Nabble.com.

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>Hayden Fisher</dc:creator>
    <dc:date>2013-05-16T12:56:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19659">
    <title>Resolve struct property for BLOB buffer -&gt; Java</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19659</link>
    <description>&lt;pre&gt;Hi, how do I resolve a SWIGTYPE_p_unsigned_char in my SWIG interface file?

This is wrapping C -&amp;gt; Java

I have the following struct and underlined the culprit


*/**
Container for OGC GEOMETRYCOLLECTION Geometry
*/
typedef struct gaiaGeomCollStruct
{
/* OpenGis GEOMETRYCOLLECTION */
/** the SRID */
    int Srid;       /* the SRID value for this GEOMETRY */
/** CPU endian arch */
    char endian_arch;   /* littleEndian - bigEndian arch for target CPU */
/** BLOB Geometry endian arch */
    char endian;        /* littleEndian - bigEndian */
/** BLOB-Geometry buffer */
    const unsigned char *blob;  /* WKB encoded buffer */
//______________________________________________________________________________________
/** BLOB-Geometry buffer size (in bytes) */
    unsigned long size; /* buffer size */
/** current offset [BLOB parsing] */
    unsigned long offset;   /* current offset [for parsing] */
/** pointer to first POINT [linked list]; may be NULL */
    gaiaPointPtr FirstPoint;    /* Points linked list - first&lt;/pre&gt;</description>
    <dc:creator>Hayden Fisher</dc:creator>
    <dc:date>2013-05-16T07:21:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19658">
    <title>Problem wrapping a struct</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19658</link>
    <description>&lt;pre&gt;Hi all,

I'm trying to wrap several C++ structs, each of which has a constructor 
with an initializer list.
One of them looks something like this:

struct Measurements
{
/// default constructor
Measurements() :
dateStamp(0, 0)
{
}

Date dateStamp;
};

Note that the class "Date" does not have a default constructor.
When I compile it with swig, I get the following error:

In function ‘PyObject* _wrap_Measurements_dateStamp_get(PyObject*, 
PyObject*)’:
error: no matching function for call to ‘Date::Date()’
note: candidates are:PG::L2::LS::DateTime::DateTime(int, int)

There is an identical error for the "setter".

So this is correct ... there is no default constructor for Date, and I 
cannot alter the code.

Any ideas on what might be wrong and how to fix it?

Regards,
Chris Botos

&lt;/pre&gt;</description>
    <dc:creator>Christopher Botos</dc:creator>
    <dc:date>2013-05-14T18:32:54</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19657">
    <title>Problem wrapping a struct - FIXED</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19657</link>
    <description>&lt;pre&gt;Well, adding includes (in this case for "Date") into the .i file usually 
helps. :-[
Sorry for adding to the email noise.
-Chris


-------- Original Message --------
Subject: Problem wrapping a struct
Date: Tue, 14 May 2013 14:32:54 -0400
From: Christopher Botos &amp;lt;cbotos&amp;lt; at &amp;gt;aer.com&amp;gt;
Reply-To: cbotos&amp;lt; at &amp;gt;aer.com
Organization: Atmospheric &amp;amp; Environmental Research (AER)
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net



Hi all,

I'm trying to wrap several C++ structs, each of which has a constructor
with an initializer list.
One of them looks something like this:

struct Measurements
{
/// default constructor
Measurements() :
dateStamp(0, 0)
{
}

Date dateStamp;
};

Note that the class "Date" does not have a default constructor.
When I compile it with swig, I get the following error:

In function ‘PyObject* _wrap_Measurements_dateStamp_get(PyObject*,
PyObject*)’:
error: no matching function for call to ‘Date::Date()’
note: candidates are:PG::L2::LS::DateTime::DateTime(int, int)

There is an identical error for the "s&lt;/pre&gt;</description>
    <dc:creator>Christopher Botos</dc:creator>
    <dc:date>2013-05-14T19:09:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19656">
    <title>Re: Migrating from Swig 1.3.33 to 2.0.9</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19656</link>
    <description>&lt;pre&gt;This was fixed a few months back for the swig-2.0.10 release which will 
be released shortly, probably in the next few days.

William


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
&lt;/pre&gt;</description>
    <dc:creator>William S Fulton</dc:creator>
    <dc:date>2013-05-14T18:21:31</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19655">
    <title>Re: Special Qt mode for SWIG</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19655</link>
    <description>&lt;pre&gt;From: ZHONG Zhu &amp;lt;Zhu.Zhong&amp;lt; at &amp;gt;alcatel-sbell.com.cn&amp;gt;

To: Dimitar Dobrev &amp;lt;dpldobrev&amp;lt; at &amp;gt;yahoo.com&amp;gt; 
Cc: "swig-user&amp;lt; at &amp;gt;lists.sourceforge.net" &amp;lt;swig-user&amp;lt; at &amp;gt;lists.sourceforge.net&amp;gt; 
Sent: Tuesday, May 14, 2013 4:42 AM
Subject: RE: [Swig-user] Special Qt mode for SWIG
 


 
Hi Dimitar,
 
That’s very useful info to me. I checked SMOKE webpage but can’t find out if it works on Windows with MinGW. Do you have this info or can you forward me to any link? Thank you!
 
Zhu
 
From:Dimitar Dobrev [mailto:dpldobrev&amp;lt; at &amp;gt;yahoo.com] 
Sent: Sunday, May 12, 2013 5:09 PM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: [Swig-user] Special Qt mode for SWIG
 
    
    Hello,
    
    I'm looking into the possibility to wrap Qt with SWIG. I've already read it's quite the challenge but I have an idea about which I'd love to hear some opinions.
    You probably know about SMOKE, another tool for wrapping C++ using headers. It has a special "qt" mode which allows it to properly recognize and parse Qt headers. I was wondering if the&lt;/pre&gt;</description>
    <dc:creator>Dimitar Dobrev</dc:creator>
    <dc:date>2013-05-14T07:39:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19654">
    <title>Re: Special Qt mode for SWIG</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19654</link>
    <description>&lt;pre&gt;Hi Dimitar,

That's very useful info to me. I checked SMOKE webpage but can't find out if it works on Windows with MinGW. Do you have this info or can you forward me to any link? Thank you!

Zhu

From: Dimitar Dobrev [mailto:dpldobrev&amp;lt; at &amp;gt;yahoo.com]
Sent: Sunday, May 12, 2013 5:09 PM
To: swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
Subject: [Swig-user] Special Qt mode for SWIG


    Hello,

    I'm looking into the possibility to wrap Qt with SWIG. I've already read it's quite the challenge but I have an idea about which I'd love to hear some opinions.
    You probably know about SMOKE&amp;lt;http://techbase.kde.org/Development/Languages/Smoke&amp;gt;, another tool for wrapping C++ using headers. It has a special "qt" mode which allows it to properly recognize and parse Qt headers. I was wondering if the same option could in theory be added to SWIG?

    Regards,
    Dimitar Dobrev
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security&lt;/pre&gt;</description>
    <dc:creator>ZHONG Zhu</dc:creator>
    <dc:date>2013-05-14T01:42:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19653">
    <title>Eigen3 + std::vector + SWIG typemap -&gt; Python</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19653</link>
    <description>&lt;pre&gt;Hello everyone,

I am currently trying to wrap a C++ library[1] that optionally uses 
Eigen3 to Python using SWIG. I would like to be able to expose 
std::vector&amp;lt;&amp;gt;'s that contain Eigen3 vectors to python using std_vector.i.

However there is big catch:

The library uses Eigen3 as linear algebra package. Due to SSE 
requirements some Eigen3 types have to use a special allocator when 
storing them in a std::vector. Eigen3 comes with a handy macro that 
creates a specialization of std::vector&amp;lt;&amp;gt; that allows to use

   std::vector&amp;lt;EigenArrayType&amp;gt;

instead of the more verbose

   std::vector&amp;lt;EigenArrayType, Eigen::aligned_allocator&amp;lt;EigenArrayType&amp;gt; &amp;gt;

Basically the macro makes a specialization of

   std::vector&amp;lt;EigenArrayType, std::allocator&amp;lt;EigenArrayType&amp;gt; &amp;gt;

but uses internally the Eigen::aligned_allocator&amp;lt;&amp;gt; (see [2])

When creating a typemap like

   %template(EigenArrayTypeVectorStdAlloc) std::vector&amp;lt;EigenArrayType&amp;gt;;

I get problems as SWIG has specializations of its own concerning the 
allocator and therefore&lt;/pre&gt;</description>
    <dc:creator>Martin Felis</dc:creator>
    <dc:date>2013-05-13T21:49:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19652">
    <title>Re: PHP generated code in c++ for functions outsideclass</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19652</link>
    <description>&lt;pre&gt;Laurent CHASTEL \writes: 

It sounds like a bug in SWIG's PHP backend - can you open a bug report please?

Cheers,
    Olly


------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Swig-user mailing list
Swig-user&amp;lt; at &amp;gt;lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swig-user
&lt;/pre&gt;</description>
    <dc:creator>Olly Betts</dc:creator>
    <dc:date>2013-05-13T21:53:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19651">
    <title>wrapper for std::tr1::array</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19651</link>
    <description>&lt;pre&gt;I asked earlier suggestions on wrapping C++ std::tr1::array in Python.

I finally came up with the following, which I present in case anyone 
else finds it useful. I only care about short arrays, so I didn't bother 
with a numpy interface. Suggested improvements would be welcome.

----- array.i -----

%{
#include &amp;lt;tr1/array&amp;gt;
%}

%import "std_except.i"
%include "array.h"

%extend std::tr1::array {
    inline size_t __len__() const { return $self-&amp;gt;size(); }

    inline const value_type&amp;amp; _get(size_t i) const 
throw(std::out_of_range) {
        return $self-&amp;gt;at(i);
    }

    inline void _set(size_t i, const value_type&amp;amp; v) 
throw(std::out_of_range) {
        $self-&amp;gt;at(i) = v;
    }

    %pythoncode {
        def __getitem__(self, key):
            if isinstance(key, slice):
                return tuple(self._get(i) for i in 
range(*key.indices(len(self))))

            if key &amp;lt; 0:
                key += len(self)
            return self._get(key)
        
        def __setitem__(self, key, v):
            if isi&lt;/pre&gt;</description>
    <dc:creator>Russell E. Owen</dc:creator>
    <dc:date>2013-05-13T20:40:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19650">
    <title>Question: adding python instance variable to C++ class?</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19650</link>
    <description>&lt;pre&gt;I have a SWIG-wrapped C++ class, for sake of argument called Obj.

I'd like to add a few python instance variables that are only visible to 
python code. (these will be point to objects I don't want to wrap in C++ 
and that the C++ code doesn't need to see).

The only way I've thought to do it is to use properties:

%copyctorObj;

%include "obj.h"

%extend Obj {
    %pythoncode {
        &amp;lt; at &amp;gt;property
        def foo(self):
            if not hasattr(self, "_foo"):
                self._foo = Foo()
            return self._foo

        &amp;lt; at &amp;gt;foo.setter
        def foo(self, value):
            self._foo = value

It works, but it's a lot of boilerplate and every read access requires 
an extra check, so it's slower than adding the instance variable at 
construction time.

Also, any suggestions on how to get the copy constructor to copy the 
python-only value(s)?

obj1 = Obj()
obj2 = Obj(obj1)

&lt;/pre&gt;</description>
    <dc:creator>Russell E. Owen</dc:creator>
    <dc:date>2013-05-13T20:29:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.programming.swig/19649">
    <title>Berkelium</title>
    <link>http://permalink.gmane.org/gmane.comp.programming.swig/19649</link>
    <description>&lt;pre&gt;Hi,
Is it possible to extend a extensive library such as Berkelium to Python
using swig? I have tried some simpler examples but I am not able to start
with Berkelium. Are there any code examples which can help me? Where can I
start? I would be grateful for any help.
Thanks and Regards.

&lt;/pre&gt;</description>
    <dc:creator>Rishi Agarwal</dc:creator>
    <dc:date>2013-05-13T04:41:38</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.programming.swig">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.programming.swig</link>
  </textinput>
</rdf:RDF>
