[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt]
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2011-06-21 9:51:12
Message-ID: ee8d1eef17f1b90a36e6c880df0afb88 () localhost
[Download RAW message or body]
On Mon, 20 Jun 2011 10:03:42 -0400, "Shen, Guobao" <shengb@bnl.gov> wrote:
> Hi, Phil and everyone,
> It is great to find this mailing list.
> I am recently starting to use SIP to expose a C++ app, which makes heavy
> use of std::tr1::shared_ptr.
> I hit some problems to wrap them in SIP. Here is my example:
>
> class FooA;
> typedef std::tr1::shared_ptr<const FooA> a_ptr;
>
> class FooA : public std::tr1::enable_shared_from_this<FooA> {
> public:
> typedef std::tr1::shared_ptr<FooA> shared_pointer;
> ...
> }
>
> class FooB: {
> public:
> a_ptr method1(std::string name, a_ptr pointer) const;
> ...
> }
>
> How should I wrap them in SIP? Is there some code in PyQt that I can
> look at?
>
> Thanks,
>
> Guobao
You could try specifying it as a normal pointer in the .sip file...
typedef FooA *a_ptr;
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic