python: add wrapper on twa_graph::edges()

* spot/twa/twagraph.hh (edges): Do not hide from SWIG.
* spot/graph/graph.hh: Hide stuff that SWIG do not understand.
* python/spot/impl.i: Add some typemaps and fragment to
iterate over the result of twa_graph::edges().
This commit is contained in:
Laurent XU 2016-03-08 15:59:14 +01:00 committed by Alexandre Duret-Lutz
parent cd661801df
commit 1eee12b8b4
3 changed files with 31 additions and 4 deletions

View file

@ -527,11 +527,13 @@ namespace spot
template <typename Graph>
class SPOT_API all_trans
{
public:
typedef typename std::conditional<std::is_const<Graph>::value,
const typename Graph::edge_vector_t,
typename Graph::edge_vector_t>::type
tv_t;
typedef all_edge_iterator<Graph> iter_t;
private:
tv_t& tv_;
public: