Zen
A cross-platform functional programming language
|
AST Node for all ternary operators. More...
#include <Ast.hpp>
Public Member Functions | |
TernaryOpExpr (const QualifiedType &type, const Expr &lhs, const z::string &op1, const Expr &rhs1, const z::string &op2, const Expr &rhs2) | |
Default constructor. | |
const Expr & | getLhs () const |
Returns the LHS of the expression. | |
const z::string & | getOp1 () const |
Returns the first operator of the expression. | |
const Expr & | getRhs1 () const |
Returns the first RHS of the expression. | |
const z::string & | getOp2 () const |
Returns the second operator of the expression. | |
const Expr & | getRhs2 () const |
Returns the second RHS of the expression. | |
Private Member Functions | |
virtual void | visit (Visitor &visitor) const |
Abstract visitor function. | |
Private Attributes | |
const Expr & | _lhs |
The LHS expression. | |
const z::string | _op1 |
The first operator. | |
const Expr & | _rhs1 |
The first RHS expression. | |
const z::string | _op2 |
The second operator. | |
const Expr & | _rhs2 |
The second RHS expression. |
TernaryOpExpr | ( | const QualifiedType & | type, |
const Expr & | lhs, | ||
const z::string & | op1, | ||
const Expr & | rhs1, | ||
const z::string & | op2, | ||
const Expr & | rhs2 | ||
) | [inline] |
Default constructor.
type | Expression type |
lhs | The LHS of the expression |
op1 | The first operator of the expression |
rhs1 | The first RHS of the expression |
op2 | The second operator of the expression |
rhs2 | The second RHS of the expression |
const Expr& getLhs | ( | ) | const [inline] |
Returns the LHS of the expression.
const z::string& getOp1 | ( | ) | const [inline] |
Returns the first operator of the expression.
const z::string& getOp2 | ( | ) | const [inline] |
Returns the second operator of the expression.
const Expr& getRhs1 | ( | ) | const [inline] |
Returns the first RHS of the expression.
const Expr& getRhs2 | ( | ) | const [inline] |
Returns the second RHS of the expression.
void visit | ( | Visitor & | visitor | ) | const [private, virtual] |