numerical_semiring.hh

00001 // numerical_semiring.hh: this file is part of the Vaucanson project.
00002 //
00003 // Vaucanson, a generic library for finite state machines.
00004 //
00005 // Copyright (C) 2001, 2002, 2003, 2004, 2005 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_CONCEPT_NUMERICAL_SEMIRING_HH
00018 # define VCSN_ALGEBRA_CONCEPT_NUMERICAL_SEMIRING_HH
00019 
00020 # include <vaucanson/algebra/concept/semiring_base.hh>
00021 
00022 namespace vcsn {
00023 
00024   namespace algebra {
00025 
00029     /*------------------.
00030     | NumericalSemiring |
00031     `------------------*/
00033     struct NumericalSemiring
00034       : SemiringBase<NumericalSemiring>
00035     {
00036       bool      operator == (const NumericalSemiring&) const;
00037     };
00038 
00042   } // algebra
00043 
00047   /*----------------------------------.
00048   | dynamic_traits<NumericalSemiring> |
00049   `----------------------------------*/
00051   template<>
00052   struct dynamic_traits<algebra::NumericalSemiring>
00053     : dynamic_traits<algebra::SemiringBase<algebra::NumericalSemiring> >
00054   {
00055   };
00056 
00057   template<>
00058   struct virtual_types<algebra::NumericalSemiring>
00059     : virtual_types<algebra::SemiringBase<algebra::NumericalSemiring> >
00060   {
00066     typedef           algebra::add_kind    semigroup_kind;
00067   };
00068 
00070   template<typename T>
00071   struct MetaElement<algebra::NumericalSemiring, T>
00072     : MetaElement<algebra::SemiringBase<algebra::NumericalSemiring>, T>
00073   {};
00074 
00079 } // vcsn
00080 
00081 
00082 # ifndef VCSN_USE_INTERFACE_ONLY
00083 #  include <vaucanson/algebra/concept/numerical_semiring.hxx>
00084 # endif // VCSN_USE_INTERFACE_ONLY
00085 
00086 
00087 #endif // ! VCSN_ALGEBRA_CONCEPT_NUMERICAL_SEMIRING_HH

Generated on Fri Jul 28 12:18:49 2006 for Vaucanson by  doxygen 1.4.6