24 template <
typename LabelSet,
typename WeightSet>
31 return self_->vname();
35 template <
typename Ctx>
42 template <
typename Ctx>
62 virtual ~
base() =
default;
67 template <
typename Context>
73 : context_(
std::move(ctx))
context(const vcsn::context< LabelSet, WeightSet > &ctx)
A description of the context, sufficient to build it.
const auto * operator->() const
To dyn_cast(From &&from)
A dynamic_cast in debug mode, static_cast with NDEBUG.
const auto & context() const
const context_t context_
The context.
boost::flyweight< std::string, boost::flyweights::no_tracking, boost::flyweights::intermodule_holder > symbol
An internalized string.
auto & as()
Downcast to the exact type.
auto & as() const
Downcast to the exact type.
Template-less root for contexts.
std::shared_ptr< base > self_
The wrapped context.