[pygccxml-development] xxx_traits? container_traits questions generically
Brought to you by:
mbaas,
roman_yakovenko
From: Gustavo C. <gjc...@gm...> - 2008-08-14 21:41:26
|
I am trying to use container_traits.find_container_traits(): http://www.language-binding.net/pygccxml/apidocs/pygccxml.declarations.container_traits-module.html The return value of the function appears to be None or pygccxml.declarations.container_traits.xxx_traits. What's the deal with this undocumented xxx_traits object? In a related question, what is the easiest way to distinguish between sequence (list, vector, set, ...) and associative (*map*) types? And finally, if I ever get a map_traits, documentation tells me of a element_type attribute, but how do I get the key type (maps have keys and values...). Thanks in advance. -- Gustavo J. A. M. Carneiro INESC Porto, Telecommunications and Multimedia Unit "The universe is always one step beyond logic." -- Frank Herbert |