Vaucanson  1.4.1
concept/cyclic_semiring.hh
1 // tropical_semiring.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_ALGEBRA_CONCEPT_CYCLIC_SEMIRING_HH
18 # define VCSN_ALGEBRA_CONCEPT_CYCLIC_SEMIRING_HH
19 
20 # include <vaucanson/algebra/concept/semiring_base.hh>
21 
22 namespace vcsn {
23 
24  namespace algebra {
25 
26  template <unsigned int n>
27  struct CyclicSemiring;
28 
29  } // algebra
30 
34  /*-----------------------------------------------------------.
35  | dynamic_traits : traits about the set of cyclic semiring |
36  `-----------------------------------------------------------*/
37 
39  template<unsigned int n>
40  struct dynamic_traits<algebra::CyclicSemiring<n> >
41  : dynamic_traits<algebra::SemiringBase<algebra::CyclicSemiring<n> > >
42  {
43  };
44 
45  template<unsigned int n>
46  struct virtual_types<algebra::CyclicSemiring<n> >
47  : virtual_types<algebra::SemiringBase<algebra::CyclicSemiring<n> > >
48  {
49  };
50 
51 
55  namespace algebra {
56 
60  /*-----------------.
61  | CyclicSemiring |
62  `-----------------*/
63 
65  template <unsigned int n>
67  : SemiringBase<CyclicSemiring<n> >
68  {
69  bool operator == (const CyclicSemiring&) const;
70  };
71 
75  } // algebra
76 
80  /*---------------------------------------.
81  | MetaElement<CyclicSemiring<n>, T> |
82  `---------------------------------------*/
83 
85  template<unsigned int n, typename T>
86  struct MetaElement<algebra::CyclicSemiring<n> , T>
87  : MetaElement<algebra::SemiringBase<algebra::CyclicSemiring<n> >, T>
88  {};
89 
93 } // vcsn
94 
95 
96 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
97 # include <vaucanson/algebra/concept/cyclic_semiring.hxx>
98 # endif // VCSN_USE_INTERFACE_ONLY
99 
100 
101 #endif // ! VCSN_ALGEBRA_CONCEPT_CYCLIC_SEMIRING_HH