[pygccxml-development] Iteration over py++ generated maps and vectors
Brought to you by:
mbaas,
roman_yakovenko
|
From: Vincent F. <vin...@gm...> - 2008-06-18 15:50:25
|
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...
Thanks in advance!
Vincent FERRIES
|