Commit dd4e10a2 authored by Florent D'Halluin's avatar Florent D'Halluin
Browse files

Use const refs in iterator ctors.

* include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hh,
* include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hxx,
* include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hh,
* include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hxx:
Use const graph_t& instead of graph_t.  The iterators now work
with bmig.
parent cad87887
2009-09-16 d-halluin <d-halluin@lrde.epita.fr>
Use const refs in iterator ctors.
* include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hh,
* include/vaucanson/automata/implementation/iterators/delta_transition_iterator.hxx,
* include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hh,
* include/vaucanson/automata/implementation/iterators/rdelta_transition_iterator.hxx:
Use const graph_t& instead of graph_t. The iterators now work
with bmig.
2009-09-16 d-halluin <d-halluin@lrde.epita.fr>
 
Add RDeltaIterator.
......
......@@ -55,7 +55,7 @@ namespace vcsn
typedef typename graph_t::label_t label_t;
typedef typename graph_t::semiring_elt_value_t semiring_elt_value_t;
DeltaTransitionIterator(graph_t graph,
DeltaTransitionIterator(const graph_t& graph,
typename graph_t::hstate_t state);
~DeltaTransitionIterator();
......
......@@ -23,9 +23,8 @@ namespace vcsn
{
template <typename T>
DeltaTransitionIterator<T>::DeltaTransitionIterator
(graph_t graph,
hstate_t state)
DeltaTransitionIterator<T>::DeltaTransitionIterator(const graph_t& graph,
hstate_t state)
: TransitionIteratorBase<self_t>(graph),
state_(state),
i_(graph, state)
......
......@@ -55,7 +55,7 @@ namespace vcsn
typedef typename graph_t::label_t label_t;
typedef typename graph_t::semiring_elt_value_t semiring_elt_value_t;
RDeltaTransitionIterator(graph_t graph,
RDeltaTransitionIterator(const graph_t& graph,
hstate_t state);
~RDeltaTransitionIterator();
......
......@@ -23,9 +23,8 @@ namespace vcsn
{
template <typename T>
RDeltaTransitionIterator<T>::RDeltaTransitionIterator
(graph_t graph,
hstate_t state)
RDeltaTransitionIterator<T>::RDeltaTransitionIterator(const graph_t& graph,
hstate_t state)
: TransitionIteratorBase<self_t>(graph),
state_(state),
i_(graph, state)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment