![]() |
Vcsn
2.0
Be Rational
|
An inner node implementing a weight. More...
#include <fwd.hh>
Public Types | |
| using | super_t = inner< Context > |
| using | weight_t = weight_t_of< Context > |
| using | value_t = typename super_t::value_t |
Public Types inherited from vcsn::rat::inner< Context > | |
| using | super_t = node< Context > |
| using | value_t = typename super_t::value_t |
Public Types inherited from vcsn::rat::node< Context > | |
| using | context_t = Context |
| using | node_t = rat::node< context_t > |
| using | value_t = std::shared_ptr< const node_t > |
| A ratexp usable with value semantics. More... | |
| using | values_t = std::vector< value_t > |
| using | const_visitor = vcsn::rat::const_visitor< context_t > |
Public Types inherited from vcsn::rat::exp | |
| using | type_t = rat::type_t |
| The possible types of ratexps. More... | |
Public Member Functions | |
| virtual type_t | type () const |
| The type of this node. More... | |
| const value_t | sub () const |
| const weight_t & | weight () const |
| void | set_weight (const weight_t &w) |
| weight_node (const weight_t &w, value_t exp) | |
| weight_node (const weight_node &that) | |
| virtual void | accept (typename super_t::const_visitor &v) const |
Public Member Functions inherited from vcsn::rat::exp | |
| virtual | ~exp ()=default |
| bool | is_unary () const |
| Whether star, complement. More... | |
| bool | is_leaf () const |
| Whether a leaf of the ratexp tree. More... | |
Private Attributes | |
| value_t | sub_ |
| weight_t | weight_ |
An inner node implementing a weight.
Implements the Composite Design Pattern.
| using vcsn::rat::weight_node< Type, Context >::super_t = inner<Context> |
| using vcsn::rat::weight_node< Type, Context >::value_t = typename super_t::value_t |
| using vcsn::rat::weight_node< Type, Context >::weight_t = weight_t_of<Context> |
|
inline |
Definition at line 138 of file ratexp.hxx.
|
inline |
|
inlinevirtual |
Implements vcsn::rat::node< Context >.
Definition at line 161 of file ratexp.hxx.
|
inline |
Definition at line 155 of file ratexp.hxx.
|
inline |
Definition at line 143 of file ratexp.hxx.
|
inlinevirtual |
|
inline |
Definition at line 149 of file ratexp.hxx.
|
private |
|
private |