Pere Mato <pere.mato_at_cern.ch> writes:
> For what concerns STL classes the Python bindings provider by
> PyROOT should automatically provide Python iteration functionality
> (__iter__) if the STL iterators are found in the Reflex dictionaries.
Initially I may not have had the iterators included. I tried to assure they are added via lcgdict lines like:
<lcgdict> <class pattern="_Rb_tree_*iterator<std::pair<const short,DayaBay::SimHitCollection*> >" /> <class name="std::map<short int,DayaBay::SimHitCollection*>::iterator" /></lcgdict>
But, still find no __iter__() method on the wrapped map nor the wrapped iterator.
Is there some document that I can follow to make sure I'm creating the dictionary correctly?
Thanks,
-Brett.
Received on Wed Dec 10 2008 - 09:07:08 CET
This archive was generated by hypermail 2.2.0 : Wed Dec 10 2008 - 23:50:01 CET