Re: [pygccxml-development] Iteration over py++ generated maps and vectors
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-06-18 17:55:09
|
On Wed, Jun 18, 2008 at 6:50 PM, Vincent Ferries <vin...@gm...> wrote: > I've generated most of what I needed. > I'm currently trying to recover all the informations stocked in my > different objects. > > I'm initializing an object with childrens (nodes in this example). > > I've said myself the best way should be using iterators over such > lists (vector, maps etc). > I tried the following example : > > > nodes = self.internalDb.getNodes() > iterator = nodes.__iter__() > for it in iterator: > print it > > > > It prints me a list of lines like that : > > (52208839, <pyferespost.NastranNode object at 0xb7e01dec>) > > > > I'd like to access to the inner object (in this case a NastranNode) > but don't really know how... Sorry, but I don't understand you. Small and complete example is needed. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |