[C++-sig] Re : Re : changing argument value in a C++/Python code

2012-06-11 Thread christophe jean-joseph
ones, that would be very helpful. Thank you very much in advance. CHRISTOPHE Jean-Joseph De : Stefan Seefeld À : cplusplus-sig@python.org Envoyé le : Vendredi 8 juin 2012 18h16 Objet : Re: [C++-sig] Re : changing argument value in a C++/Python code Chri

[C++-sig] Re : Re : changing argument value in a C++/Python code, about initialisation

2012-06-08 Thread christophe jean-joseph
I changed the first line of A::h to C myC; myC.setValue(0.); this->g(&myC); I don't know if it match your comment, but the result is myC read at 0 instead of a strange-value, which is still not 7. CHRISTOPHE Jean-Joseph De : Nat Linden À :

[C++-sig] Re : Re : changing argument value in a C++/Python code

2012-06-08 Thread christophe jean-joseph
le : Vendredi 8 juin 2012 17h14 Objet : Re: [C++-sig] Re : changing argument value in a C++/Python code On Fri, Jun 8, 2012 at 8:46 AM, christophe jean-joseph wrote: > class C > { > public: > double myC; > C(){} > ~C(){} > > void setValue(double val) { > myC = val; >

[C++-sig] Re : changing argument value in a C++/Python code

2012-06-08 Thread christophe jean-joseph
As my code was uncommented and uncomplete, I post it again with necessary corrections. C++ classes: #include using namespace std; /* Class aimed at modeling a C++ user's type that should be used in Python */ class C { public: double myC; C(){} ~C(){} void setValue(double val) { myC = val;

[C++-sig] changing argument value in a C++/Python code

2012-06-08 Thread christophe jean-joseph
My problem is as follow: I have a C++ code that I can't modify as I want (not written by me and under some intellectual property constraints). I have to link it with a Python code through a Python main. I use boost::python for the reflection. At some point in the code, a C++ function use a Pyth

[C++-sig] Re : Re : boost::python: C++/Python function overload issue

2012-04-20 Thread christophe jean-joseph
Thank you very much. I knew the link already but it made me read my code again and realize that I forgot to reflect the overloaded functions with boost::python. Christophe Jean-Joseph De : JS Unkn0wn À : christophe jean-joseph ; Development of Python/C

[C++-sig] Re : boost::python: C++/Python function overload issue

2012-04-18 Thread christophe jean-joseph
Hi, here is my problem. Let say have a C++ A class and a Ader class in Python, derived from A (through boost::python). I have a list of functions f_i in Ader overloading the equivalent functions with same name in A. The main is written in Python and call a method g of a C++ class B passing an

[C++-sig] Re : Re : Re : Re : [boost] Re : Using an element of a class A in a constructor of a class B (reflection with boost::python)

2012-03-22 Thread christophe jean-joseph
Thank you very much for your suggestion. Jean-Joseph   De : Jim Bosch À : christophe jean-joseph Cc : "cplusplus-sig@python.org" Envoyé le : Mercredi 21 mars 2012 17h32 Objet : Re: Re : Re : [C++-sig] Re : [boost] Re : Using an element of a c

[C++-sig] Re : Re : Re : [boost] Re : Using an element of a class A in a constructor of a class B (reflection with boost::python)

2012-03-21 Thread christophe jean-joseph
A as: .def("f", &B::f) keep C++ declaration (I mean, even if B::f is declared in A, it's declared as a method of B, which is correct). But what your are proposing seems not correct to me, as long as A isn't a derived class from B. Christophe Jean-Joseph  

[C++-sig] Re : [boost] Re : Using an element of a class A in a constructor of a class B (reflection with boost::python)

2012-03-15 Thread christophe jean-joseph
Hello The situation is as follow. I have a C++ code that I haven't written and that I barely can modified. I am supposed to reflect this code in Python with boost. In the code, I have something looking like this: Class A_Base {   A_Base(){};   ~A_Base(){};   Whatever virtual and pure virtual fu