Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
filter.cc
Go to the documentation of this file.
2 #include <vcsn/algos/filter.hh>
3 #include <vcsn/dyn/algos.hh>
4 #include <vcsn/dyn/automaton.hh>
5 
6 namespace vcsn
7 {
8  /*--------.
9  | Filter. |
10  `--------*/
11 
12  namespace dyn
13  {
14 
15  REGISTER_DEFINE(filter);
16 
17  automaton
18  filter(const automaton& aut, const std::vector<unsigned>& ss)
19  {
20  return detail::filter_registry().call(aut, ss);
21  }
22  }
23 }
std::shared_ptr< detail::automaton_base > automaton
Definition: automaton.hh:71
automaton filter(const automaton &aut, const std::vector< unsigned > &ss)
The subautomaton based on aut, with only states in ss visible.
Definition: filter.cc:18