From: Bob H. <bh...@co...> - 2012-01-19 13:58:03
|
On 1/19/2012 4:13 AM, Alberto Simões wrote: > but, when generating the Perl interface, I can't see any code to > manage the std::list's. I have a couple of method (empty, push, size) > but nothing to query the elements, or so. > > What am I missing? I don't think you're missing anything. The push() method you see in the *.pm file maps to the generated C++ code in FreeLing_wrap.cxx. If you look at that code (specifically at "XS(_wrap_VectorWord_push)"), you'll see that push() in Perl maps ultimately to: (arg1)->push_back((word const &)*arg2); in the generated C++ wrapper. So, it's really just a different name within the Perl environment. It still uses the correct std::list method underneath. Render me gone, ||| Bob ^(===)^ ---------------------------------oOO--(_)--OOo--------------------------------- I'm not so good with advice...can I interest you in a sarcastic comment? |