[C++-sig] Exposing std::list<> via Boost.Python

2010-06-21 Thread Phil Bass
We have a lot of C++ code using a home-grown Event class template. An Event is just a list of pointers to callback function objects. More precisely, an Event is a std::list*>, where unary_function is a polymorphic function object class. Code that generates an event iterates through the list, de

Re: [C++-sig] How to add new constructor in a class

2010-06-21 Thread Matthew Scouten (TT)
Why not just subclass A as A_wrapper, add the necessary ctor to A_wrapper and expose that instead? -Original Message- From: cplusplus-sig-bounces+matthew.scouten=tradingtechnologies@python.org [mailto:cplusplus-sig-bounces+matthew.scouten=tradingtechnologies@py thon.org] On Behalf

Re: [C++-sig] interfacing headle binary file library, raw pointer and buffer

2010-06-21 Thread heroxbd
Allo Nat, Thank you very much for your reply. I didn't realized I could have this flexibility with py++ generated code. Now I could interface these functions. Cheers! Benda Nat Goodspeed writes: > You want to write a C++ wrapper function something like this: > > std::string wrapped_read(size_

Re: [C++-sig] interfacing headle binary file library, raw pointer and buffer

2010-06-21 Thread Roman Yakovenko
On Tue, Jun 22, 2010 at 6:37 AM, wrote: > Allo Nat, > > Thank you very much for your reply. I didn't realized I could have this > flexibility with py++ generated code. Yes it has(http://language-binding.net/pyplusplus/documentation/functions/transformation/transformation.html), but your use cas