Vaucanson  1.4.1
free_monoid_int.hh
1 // free_monoid_int.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 VCSN_ALGEBRA_IMPLEMENTATION_MONOID_FREE_MONOID_INT_HH
18 # define VCSN_ALGEBRA_IMPLEMENTATION_MONOID_FREE_MONOID_INT_HH
19 
20 # include <vaucanson/algebra/implementation/monoid/monoid_rep.hh>
21 # include <vaucanson/algebra/implementation/series/series_rep.hh>
22 # include <vaucanson/algebra/implementation/monoid/free_monoid.hh>
23 # include <vaucanson/algebra/implementation/alphabets/alphabet_set.hh>
24 
25 namespace vcsn
26 {
27  namespace algebra
28  {
29 
30 # define EXACT_TYPE FreeMonoid<Element<AlphabetSet<int>, std::set<int> > >
31 
32  /*---------------------------------------------------------.
33  | Specialization of the MonoidRep structure for int letter |
34  | based free monoids. |
35  `---------------------------------------------------------*/
36 
37  template <>
38  struct MonoidRep<EXACT_TYPE> : MonoidRepBase<MonoidRep, EXACT_TYPE>
39  {
40  MonoidRep();
41  };
42 
43  /*------------------------------------------------------------.
44  | Specialization of the SeriesRep structure for int letter |
45  | based free monoids. |
46  `------------------------------------------------------------*/
47 
48  // FIXME: This partial specialization may be wrong. We should
49  // try to remove all the `this' pointers in the CTOR.
50  template <typename Semiring>
51  struct SeriesRep<Semiring, EXACT_TYPE> :
52  SeriesRepBase<SeriesRep, Semiring, EXACT_TYPE>
53  {
54  SeriesRep();
55  };
56 
57 # undef EXACT_TYPE
58 
59  } // ! algebra
60 
61 } // ! vcsn
62 
63 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
64 # include <vaucanson/algebra/implementation/monoid/free_monoid_int.hxx>
65 # endif // VCSN_USE_INTERFACE_ONLY
66 
67 #endif // ! VCSN_ALGEBRA_IMPLEMENTATION_MONOID_FREE_MONOID_INT_HH