Vaucanson  1.4.1
krat_exp_derivation.hh
Go to the documentation of this file.
1 // krat_exp_derivation.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, 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 VCSN_ALGORITHMS_KRAT_EXP_DERIVATION_HH
18 # define VCSN_ALGORITHMS_KRAT_EXP_DERIVATION_HH
19 
30 // FIXME: std::pair<Exp, bool> needs to be replaced by a pseudo-type
31 // Interface: std::pair<Exp, bool> derivate(const Exp& e, Letter l) { return vcsn::derivate(e, l); }
32 // Interface: std::pair<Exp, bool> word_derivate(const Exp& e, Word a) { return vcsn::word_derivate(e, a); }
33 
34 # include <vaucanson/design_pattern/design_pattern.hh>
35 
36 # include <utility>
37 
38 namespace vcsn {
39 
42 
43  template <class Series, class T, class Letter>
44  std::pair<Element<Series, T>, bool>
45  derivate(const Element<Series, T>& exp,
46  Letter a);
47 
49  template <class Series, class T, class Word>
50  std::pair<Element<Series, T>, bool>
51  word_derivate(const Element<Series, T>& exp,
52  Word a);
53 
56 } // vcsn
57 
58 # if !defined VCSN_USE_INTERFACE_ONLY && !defined VCSN_USE_LIB
59 # include <vaucanson/algorithms/krat_exp_derivation.hxx>
60 # endif // VCSN_USE_INTERFACE_ONLY
61 
62 #endif // ! VCSN_ALGORITHMS_KRAT_EXP_DERIVATION_HH