Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
standard.cc
Go to the documentation of this file.
1 #include <vcsn/dyn/automaton.hh>
2 #include <vcsn/algos/standard.hh>
3 #include <vcsn/dyn/algos.hh>
5 
6 namespace vcsn
7 {
8  namespace dyn
9  {
10  /*-------------------.
11  | is_standard(aut). |
12  `-------------------*/
13  REGISTER_DEFINE(is_standard);
14 
15  bool
17  {
18  return detail::is_standard_registry().call(a);
19  }
20 
21  /*---------------------.
22  | is_costandard(aut). |
23  `---------------------*/
24  REGISTER_DEFINE(is_costandard);
25 
26  bool
28  {
29  return detail::is_costandard_registry().call(a);
30  }
31 
32  /*----------------.
33  | standard(aut). |
34  `----------------*/
35  REGISTER_DEFINE(standard);
36 
37  automaton
38  standard(const automaton& a)
39  {
40  return detail::standard_registry().call(a);
41  }
42 
43  /*------------------.
44  | costandard(aut). |
45  `------------------*/
46  REGISTER_DEFINE(costandard);
47 
48  automaton
50  {
51  return detail::costandard_registry().call(a);
52  }
53 
54  /*----------------.
55  | standard(exp). |
56  `----------------*/
57  REGISTER_DEFINE(standard_ratexp);
58 
59  automaton
60  standard(const ratexp& e)
61  {
62  return detail::standard_ratexp_registry().call(e);
63  }
64  }
65 }
bool is_standard(const automaton &aut)
Whether is standard (unique initial state, with weight one, no incoming transition).
Definition: standard.cc:16
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
std::shared_ptr< detail::ratexp_base > ratexp
Definition: fwd.hh:64
automaton standard_ratexp(const ratexp &exp)
Bridge.
Definition: standard.hh:394
automaton standard(const automaton &a)
A standardized a.
Definition: standard.cc:38
automaton costandard(const automaton &a)
A standardized transpositive a.
Definition: standard.cc:49
bool is_costandard(const automaton &aut)
Whether is costandard (unique final state, with weight one, no outcoming transition).
Definition: standard.cc:27