Vaucanson  1.4.1
bmig/iterator.hh
1 // iterator.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2008 The Vaucanson Group.
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
11 //
12 // The complete GNU General Public Licence Notice can be found as the
13 // `COPYING' file in the root directory.
14 //
15 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
16 //
17 #ifndef VAUCANSON_AUTOMATA_IMPLEMENTATION_BMIG_ITERATOR_HH
18 # define VAUCANSON_AUTOMATA_IMPLEMENTATION_BMIG_ITERATOR_HH
19 
20 # include <map>
21 
22 namespace vcsn
23 {
24  namespace bmig
25  {
33  template <typename Graph, typename I>
35  {
36  public:
38  typedef Graph graph_type;
40  typedef I iterator_type;
42  typedef std::pair<I, I> range_type;
44 
50  DeltaConstIterator(const graph_type& g, typename graph_type::hstate_t s);
52 
56  void next();
61  bool done() const;
62 
66  typename graph_type::htransition_t operator*() const;
67 
68  private:
69  const graph_type& graph_;
70  iterator_type i_;
71  iterator_type end_;
72 
73  }; // End of class DeltaConstIterator
74 
75  } // End of namespace bmig
76 
77 } // End of namespace vcsn
78 
79 # if !defined VCSN_USE_INTERFACE_ONLY
80 # include <vaucanson/automata/implementation/bmig/iterator.hxx>
81 # endif // ! VCSN_USE_INTERFACE_ONLY
82 
83 #endif // ! VAUCANSON_AUTOMATA_IMPLEMENTATION_BMIG_ITERATOR_HH