Vcsn
2.4
Be Rational
|
Template-less root for contexts. More...
#include <context.hh>
Classes | |
struct | base |
Abstract wrapped type. More... | |
struct | model |
A wrapped type. More... | |
Public Member Functions | |
context () | |
template<typename LabelSet , typename WeightSet > | |
context (const vcsn::context< LabelSet, WeightSet > &ctx) | |
A description of the context, sufficient to build it. More... | |
symbol | vname () const |
template<typename Ctx > | |
auto & | as () |
Downcast to the exact type. More... | |
template<typename Ctx > | |
auto & | as () const |
Downcast to the exact type. More... | |
const auto * | operator-> () const |
operator bool () const | |
Private Attributes | |
std::shared_ptr< base > | self_ |
The wrapped context. More... | |
Template-less root for contexts.
Definition at line 16 of file context.hh.
|
inline |
Definition at line 19 of file context.hh.
|
inline |
A description of the context, sufficient to build it.
Definition at line 25 of file context.hh.
|
inline |
Downcast to the exact type.
Definition at line 36 of file context.hh.
References vcsn::dyn::context::model< Context >::context(), and vcsn::dyn::detail::dyn_cast().
Referenced by vcsn::dyn::cerny(), vcsn::dyn::detail::context_of_expression(), vcsn::dyn::detail::copy_convert(), vcsn::dyn::detail::copy_expression(), vcsn::dyn::detail::cotrie_stream(), vcsn::dyn::de_bruijn(), vcsn::dyn::divkbaseb(), vcsn::dyn::double_ring(), vcsn::dyn::expression_one(), vcsn::dyn::expression_zero(), vcsn::dyn::join(), vcsn::dyn::ladybird(), vcsn::dyn::levenshtein(), vcsn::dyn::make_automaton_editor(), vcsn::dyn::make_word_context(), vcsn::dyn::num_tapes(), vcsn::dyn::detail::print_context(), vcsn::dyn::detail::project_context(), vcsn::dyn::quotkbaseb(), vcsn::dyn::random_automaton(), vcsn::dyn::random_automaton_deterministic(), vcsn::dyn::random_expression(), vcsn::dyn::random_weight(), vcsn::dyn::detail::read_label(), vcsn::dyn::read_polynomial(), vcsn::dyn::read_weight(), vcsn::dyn::detail::to_expression_class(), vcsn::dyn::detail::to_expression_label(), vcsn::dyn::detail::trie_stream(), vcsn::dyn::u(), vcsn::dyn::weight_one(), and vcsn::dyn::weight_zero().
|
inline |
Downcast to the exact type.
Definition at line 43 of file context.hh.
References vcsn::dyn::context::model< Context >::context(), and vcsn::dyn::detail::dyn_cast().
|
inline |
Definition at line 53 of file context.hh.
|
inline |
Definition at line 48 of file context.hh.
|
inline |
Definition at line 29 of file context.hh.
|
private |
The wrapped context.
Definition at line 91 of file context.hh.