- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

# 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   {
    00061   };
    00062
    00064   template<typename T>
    00065   struct MetaElement<algebra::NumericalSemiring, T>
    00066     : MetaElement<algebra::SemiringBase<algebra::NumericalSemiring>, T>
    00067   {};
    00068
    00073 } // vcsn
    00074
    00075
    00076 # if !defined VCSN_USE_INTERFACE_ONLY || defined VCSN_USE_LIB
    00077 #  include <vaucanson/algebra/concept/numerical_semiring.hxx>
    00078 # endif // VCSN_USE_INTERFACE_ONLY
    00079
    00080
    00081 #endif // ! VCSN_ALGEBRA_CONCEPT_NUMERICAL_SEMIRING_HH