[C++-sig] passing wrapped c++ objects to boost wrapped function

Roman Yakovenko roman.yakovenko at gmail.com
Sat Jan 6 20:14:31 CET 2007


On 1/6/07, Kim Branson <kim.branson at stanford.edu> wrote:
> I'm attempting to extract the underlying OEMol object, from the
> PySwigObject.
> The extract<int> wont work, since i need to use more complex
> functionality from the OEMol in the c++ classes i'm attempting to
> pass the OEMol to.
>
> I found some stuff on the wiki which indicated that the below might
> work.  I'm unclear on what exactly the type that finalBondIndex gets
> passed.
> I thought the code below would take a PySwigObject and return a
> pointer  of type OEChem::OEMol,   and then my other code would then
> get a reference to the OEChem::OEMol object that the PySwigObject
> refers to?
>
> Or is it more complicated than  this?  if a print a mol i get
> <openeye.oechem.OEMol; proxy of C++ OEMolWrapper instance at
> _a0386400_p_OEMolWrapper>, does that mean the type is a OEMolWrapper
> instance and i should register that as a type?

Can you provide the link to the wiki page with relevant functionality?
Are you sure extract_swig_wrapped_pointer function is called?

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list