I am trying to understand how to access STL iterators from Python.
The classes in question are generated via GaudiObjDesc and use Reflex
for their dictionaries.
In particular I would like to know how to dereference an iterator to get at its underlying object. I believe the Python wrappers for the STL iterators, as generated by Reflex, are missing the __deref__() method.
The reason is that I look at Relax's dictionaries for HepMC and I see that the particle iterators (for example) do have the __deref__() method. With this method I can access the underlying object. If it matters, these iterators inherit from STL ones and are not direct STL classes.
Does anyone have any hints as to how I can dereference regular STL iterators from Python?
We are currently using ROOT 5.18/00.
Thanks,
-Brett.
Received on Tue Dec 09 2008 - 01:45:53 CET
This archive was generated by hypermail 2.2.0 : Tue Dec 09 2008 - 23:50:01 CET