diff --git a/test/map_indexing_suite.cpp b/test/map_indexing_suite.cpp index f369ad4d..2b571355 100644 --- a/test/map_indexing_suite.cpp +++ b/test/map_indexing_suite.cpp @@ -26,6 +26,26 @@ std::string x_value(X const& x) return "gotya " + x.s; } + + + struct domain + {}; + + struct graph + { + typedef std::map > domains_t; + domains_t domains_; + }; + + +// objects::class_value_wrapper , +// objects::make_ptr_instance , domain> > > (); + + + + + BOOST_PYTHON_MODULE(map_indexing_suite_ext) { class_("X") @@ -58,6 +78,16 @@ BOOST_PYTHON_MODULE(map_indexing_suite_ext) class_ > >("TestMap") .def(map_indexing_suite > >()) ; + + // Some more... + class_ > ("domain"); + + class_ ("domains_map") + .def (map_indexing_suite ()); + + class_ ("graph") + .def_readonly ("domains", &graph::domains_); + } #include "module_tail.cpp" diff --git a/test/map_indexing_suite.py b/test/map_indexing_suite.py index 80cca9b6..13a38522 100644 --- a/test/map_indexing_suite.py +++ b/test/map_indexing_suite.py @@ -187,6 +187,15 @@ kiwi >>> print_xmap(xm) [ (joel, reset) (kim, reset) (mariel, reset) ] +##################################################################### +# Some more... +##################################################################### + +>>> g = graph() +>>> for el in g.domains: +... print el.key(), +... dom = el.data() + ##################################################################### # END.... #####################################################################