Vcsn
2.2
Be Rational
|
The abstract, non-parameterized, root for all rational expression node types. More...
#include <expression.hh>
Public Types | |
using | type_t = rat::type_t |
The possible types of expressions. More... | |
Public Member Functions | |
virtual | ~exp ()=default |
virtual type_t | type () const =0 |
The type of this node. More... | |
bool | is_unary () const |
Whether star, complement. More... | |
bool | is_leaf () const |
Whether a leaf of the expression tree. More... | |
The abstract, non-parameterized, root for all rational expression node types.
Definition at line 20 of file expression.hh.
using vcsn::rat::exp::type_t = rat::type_t |
The possible types of expressions.
Definition at line 26 of file expression.hh.
|
virtualdefault |
|
inline |
Whether a leaf of the expression tree.
Definition at line 38 of file expression.hh.
References vcsn::rat::atom, vcsn::rat::is_constant(), and type().
|
inline |
Whether star, complement.
Definition at line 32 of file expression.hh.
References vcsn::rat::is_unary(), and type().
|
pure virtual |
The type of this node.
Implemented in vcsn::rat::atom< Context >, vcsn::rat::constant< Type, Context >, vcsn::rat::weight_node< Type, Context >, vcsn::rat::unary< Type, Context >, vcsn::rat::tuple< Context, Enable >, and vcsn::rat::variadic< Type, Context >.
Referenced by is_leaf(), and is_unary().