Awali
Another Weighted Automata library
untyped_value.hh
Go to the documentation of this file.
1 // This file is part of Awali.
2 // Copyright 2016-2022 Sylvain Lombardy, Victor Marsault, Jacques Sakarovitch
3 //
4 // Awali is a free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef DYN_UNTYPED_VALUE_HH
18 #define DYN_UNTYPED_VALUE_HH
19 
20 #include<iostream>
21 
22 namespace awali { namespace dyn {
23  struct any_t;
24 
25  namespace internal {
26  struct untyped_value{
29  virtual ~untyped_value(){}
30  virtual untyped_value* clone() const = 0;
31  virtual std::ostream& output(std::ostream& o) const = 0;
32  virtual bool less(const untyped_value& uv) const = 0;
33  virtual bool equal(const untyped_value& uv) const = 0;
34  virtual std::ostream& real_type_name(std::ostream& o) const = 0;
35  virtual std::ostream& real_type_id(std::ostream& o) const = 0;
36  };
37  }//end of ns internal
38 }}//end of ns awali::dyn
39 
40 #endif //DYN_UNTYPED_VALUE_HH
Main namespace of Awali.
Definition: ato.hh:22
Definition: untyped_value.hh:26
virtual bool equal(const untyped_value &uv) const =0
virtual ~untyped_value()
Definition: untyped_value.hh:29
virtual bool less(const untyped_value &uv) const =0
virtual std::ostream & real_type_name(std::ostream &o) const =0
virtual std::ostream & real_type_id(std::ostream &o) const =0
virtual untyped_value * clone() const =0
untyped_value(const untyped_value &)
Definition: untyped_value.hh:28
untyped_value()
Definition: untyped_value.hh:27
virtual std::ostream & output(std::ostream &o) const =0