Range expression with a binding variable. More...
#include <rng.h>
Public Member Functions | |
RngExpr (Expr *from, Expr *to) | |
RngExpr constructor with empty bind variable as default. | |
RngExpr (std::string bindvar, Expr *from, Expr *to) | |
RngExpr constructor. | |
RngExpr (const RngExpr &expr) | |
RngExpr copy constructor. | |
~RngExpr () override | |
RngExpr destructor. | |
RngExpr * | clone () const override |
clone a RngExpr. | |
void | set_bindvar (std::string bindvar) |
std::string | bindvar () const |
void | set_from (Expr *from) |
Expr * | from () const |
void | set_to (Expr *to) |
Expr * | to () const |
virtual void | accept (util::ExprVisitor &v) override |
Range expression with a binding variable.
Specifies a binding variable bindvar
, a range begin Expr and a range end Expr with default of stride 1.
sesstype::parameterised::RngExpr::RngExpr | ( | Expr * | from, |
Expr * | to | ||
) | [inline] |
sesstype::parameterised::RngExpr::RngExpr | ( | std::string | bindvar, |
Expr * | from, | ||
Expr * | to | ||
) | [inline] |
std::string sesstype::parameterised::RngExpr::bindvar | ( | ) | const [inline] |
Expr* sesstype::parameterised::RngExpr::from | ( | ) | const [inline] |
void sesstype::parameterised::RngExpr::set_bindvar | ( | std::string | bindvar | ) | [inline] |
Replace bind variable of RngExpr.
[in] | bindvar | to replace with. |
void sesstype::parameterised::RngExpr::set_from | ( | Expr * | from | ) | [inline] |
[in] | from | Expr of the range. |
void sesstype::parameterised::RngExpr::set_to | ( | Expr * | to | ) | [inline] |
[in] | to | Expr of the range. |
Expr* sesstype::parameterised::RngExpr::to | ( | ) | const [inline] |