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
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
À :
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;
>
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;
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
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
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
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
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
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
10 matches
Mail list logo