Vaucanson  1.4.1
search.hh
Go to the documentation of this file.
1 // search.hh: this file is part of the Vaucanson project.
2 //
3 // Vaucanson, a generic library for finite state machines.
4 //
5 // Copyright (C) 2001, 2002, 2003, 2004, 2005 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 VCSN_ALGORITHMS_SEARCH_HH
18 # define VCSN_ALGORITHMS_SEARCH_HH
19 
32 # include <vaucanson/automata/concept/automata.hh>
33 
34 namespace vcsn {
35 
63  template <typename InputIterator, typename FoundFunctor, typename Series, typename Kind, typename T>
64  void
65  search(const Element<Automata<Series, Kind>, T>& a,
66  const InputIterator& begin,
67  const InputIterator& end,
68  typename Element<Automata<Series, Kind>, T>::letter_t eol,
69  FoundFunctor& f);
70 
83  {
84  template <typename InputIterator, typename FoundFunctor, typename Series, typename Kind, typename T>
85  static
86  void
87  search(const Element<Automata<Series, Kind>, T>& a,
88  const InputIterator& begin,
89  const InputIterator& end,
90  typename Element<Automata<Series, Kind>, T>::letter_t eol,
91  FoundFunctor& f);
92  };
93 
109  {
110  template <typename InputIterator, typename FoundFunctor, typename Series, typename Kind, typename T>
111  static
112  void
113  search(const Element<Automata<Series, Kind>, T>& a,
114  const InputIterator& begin,
115  const InputIterator& end,
116  typename Element<Automata<Series, Kind>, T>::letter_t eol,
117  FoundFunctor& f);
118  };
119 
122 } // vcsn
123 
124 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
125 # include <vaucanson/algorithms/search.hxx>
126 # endif // VCSN_USE_INTERFACE_ONLY
127 
128 #endif // ! VCSN_ALGORITHMS_SEARCH_HH