Vaucanson 1.4
free_monoid_int.hh
00001 // free_monoid_int.hh: this file is part of the Vaucanson project.
00002 //
00003 // Vaucanson, a generic library for finite state machines.
00004 //
00005 // Copyright (C) 2008 The Vaucanson Group.
00006 //
00007 // This program is free software; you can redistribute it and/or
00008 // modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2
00010 // of the License, or (at your option) any later version.
00011 //
00012 // The complete GNU General Public Licence Notice can be found as the
00013 // `COPYING' file in the root directory.
00014 //
00015 // The Vaucanson Group consists of people listed in the `AUTHORS' file.
00016 //
00017 #ifndef VCSN_ALGEBRA_IMPLEMENTATION_MONOID_FREE_MONOID_INT_HH
00018 # define VCSN_ALGEBRA_IMPLEMENTATION_MONOID_FREE_MONOID_INT_HH
00019 
00020 # include <vaucanson/algebra/implementation/monoid/monoid_rep.hh>
00021 # include <vaucanson/algebra/implementation/series/series_rep.hh>
00022 # include <vaucanson/algebra/implementation/monoid/free_monoid.hh>
00023 # include <vaucanson/algebra/implementation/alphabets/alphabet_set.hh>
00024 
00025 namespace vcsn
00026 {
00027   namespace algebra
00028   {
00029 
00030 # define EXACT_TYPE FreeMonoid<Element<AlphabetSet<int>, std::set<int> > >
00031 
00032     /*---------------------------------------------------------.
00033     | Specialization of the MonoidRep structure for int letter |
00034     | based free monoids.                                      |
00035     `---------------------------------------------------------*/
00036 
00037     template <>
00038     struct MonoidRep<EXACT_TYPE> : MonoidRepBase<MonoidRep, EXACT_TYPE>
00039     {
00040       MonoidRep();
00041     };
00042 
00043     /*------------------------------------------------------------.
00044     | Specialization of the SeriesRep structure for int letter    |
00045     | based free monoids.                                         |
00046     `------------------------------------------------------------*/
00047 
00048     // FIXME: This partial specialization may be wrong. We should
00049     // try to remove all the `this' pointers in the CTOR.
00050     template <typename Semiring>
00051     struct SeriesRep<Semiring, EXACT_TYPE> :
00052            SeriesRepBase<SeriesRep, Semiring, EXACT_TYPE>
00053     {
00054       SeriesRep();
00055     };
00056 
00057 # undef EXACT_TYPE
00058 
00059   } // ! algebra
00060 
00061 } // ! vcsn
00062 
00063 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
00064 #  include <vaucanson/algebra/implementation/monoid/free_monoid_int.hxx>
00065 # endif // VCSN_USE_INTERFACE_ONLY
00066 
00067 #endif // ! VCSN_ALGEBRA_IMPLEMENTATION_MONOID_FREE_MONOID_INT_HH