Brett,
> I'm trying to use PyROOT with classes that return STL containers.
Currently, I'm trying to go through the finer details of the C++/Python
mapping and STL was planned for next week. :) STL containers are treated
differently than ROOT classes, and there's the issue of having the dict
info (and object code) for all instantiations that you use.
> I have a class that reutrns an "std::vector<std::string>". Some of
> the std::vector methods work but some don't, particularly operator[].
Do you have at() available? The problem here is that there's no Python
equivalent of "T& operator(int)[]". There is for the const version (where
a T* rather than T& will do the trick), but it is hard to disentangle the
two if they are both available.
Best regards,
Wim
--
Wim.Lavrijsen@cern.ch -- WLavrijsen@lbl.gov -- www.lavrijsen.net
"Stop making excuses for your software." --first step towards quality
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:10 MET