Vcsn  2.8
Be Rational
name.hh
Go to the documentation of this file.
1 #pragma once
2 
3 namespace vcsn
4 {
5  /*--------------------.
6  | name(expression). |
7  `--------------------*/
8 
9  namespace dyn
10  {
11  namespace detail
12  {
14  template <typename ExpSet, typename String>
16  name_expression(const expression& exp, const std::string& name)
17  {
18  const auto& e = exp->as<ExpSet>();
19  return {e.valueset(),
20  e.valueset().name(e.value(), symbol{name})};
21  }
22  }
23  }
24 }
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
Definition: symbol.hh:21
Definition: a-star.hh:8
expression name_expression(const expression &exp, const std::string &name)
Bridge (name).
Definition: name.hh:16
value_impl< detail::expression_tag > expression
Definition: fwd.hh:31