On Fri, Jun 20, 2008 at 10:16 AM, Vincent Ferries
<vin...@gm...> wrote:
> More precisions again, I'm mapping the following function :
>
> std::map<int,node> & getNodes(void) ;
>
> I specify the call policy like that :
>
> nastranDb.member_function('getNodes').call_policies =
> call_policies.return_value_policy(call_policies.reference_existing_object)
>
> Is this the good way to do?
I don't know. In order to answer this question I need to see code - I
need to know what is the lifetime of the returned value.
It is also important to know whether getNodes function is member function or not
> Is there a possibility to directly get Python lists, or tuples etc?
No, you will have to write wrappers.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|