3 #include <initializer_list>
10 #include <boost/optional.hpp>
77 template <
typename... Args>
82 return {sname<Args>()...};
109 template <
typename T>
113 #define DEFINE(...) \
115 struct snamer<__VA_ARGS__> \
117 static symbol name() \
119 auto res = symbol{#__VA_ARGS__}; \
125 struct vnamer<__VA_ARGS__> \
127 static symbol name(__VA_ARGS__&) \
129 auto res = symbol{#__VA_ARGS__}; \
158 template <
typename T, T Value>
163 symbol res(
"std::integral_constant<unsigned, "
169 template <
typename T, T Value>
172 using type = std::integral_constant<T, Value>;
175 return sname<type>();
220 template <
typename Dyn>
223 using type =
const std::vector<Dyn>;
227 for (
const auto& a: t)
233 return symbol{
"std::tuple<" + names +
'>'};
262 template <
typename... Args>
265 template <
typename T1>
271 template <
typename T1,
typename T2,
typename... Ts>
274 return sname<T1>() +
", " + name<T2, Ts...>();
279 return symbol{
"std::tuple<" +
name<Args...>() +
'>'};
289 template <
typename... Args>
294 return {
vname(std::forward<Args>(args))...};
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
signature ssignature()
Static signature.
signature vsignature(Args &&...args)
The signature of (Args...).
std::integral_constant< T, Value > type
ValueSet::value_t tuple(const ValueSet &vs, const typename ValueSets::value_t &...v)
const std::vector< dyn::polynomial > type
The vname of a vector of dyn:: objects (e.g., automaton, expression, ...) is the tuple of their vname...
static symbol name(const type &t)
An expressionset can implement several different sets of identities on expressions.
A simple placeholder for integral constants.
Request the set implementation (bool weights).
std::string to_string(identities i)
Wrapper around operator<<.
Signature of a function call.
static std::string name()
static symbol name(integral_constant t)
static std::string name()