Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
Operator (OperatorDescriptor *descriptor, Operator *parent=nullptr) | |
virtual | ~Operator () |
virtual void | accept (ExpressionVisitor *visitor) |
void | append (Expression *e) |
Expression * | at (int i, bool remove_from_list=false) |
void | clear () |
bool | contains (Expression *e) |
OperatorDescriptor * | descriptor () |
virtual ExpressionContext | findContext (int cursor_pos) |
virtual Expression * | findCutExpression (bool leftside, QString cut_string) |
Expression * | first (bool remove_from_list=false) |
void | globalDelimiterBoundaries (int delim, int &begin, int &end) |
void | globalExpressionBoundaries (Expression *e, int &begin, int &end) |
void | insert (Expression *e, int pos) |
Expression * | last (bool remove_from_list=false) |
const QList< Expression * > | operands () |
void | prepend (Expression *e) |
void | remove (Expression *e) |
virtual QString | renderText () |
Expression * | replaceOperand (Expression *oldExpr, Expression *newExpr) |
void | setDoNotDeleteTransientDescriptor (bool doNotDelete) |
int | size () |
virtual Expression * | smallestLeftmostSubExpr () |
virtual Expression * | smallestRightmostSubExpr () |
Public Member Functions inherited from Interaction::Expression | |
Expression (const int type, Operator *parent=nullptr) | |
virtual | ~Expression () |
int | length () |
Operator * | parent () |
void | removeFromParent () |
void | setParent (Operator *new_parent) |
int | type () |
Static Public Member Functions | |
static int | type () |
Private Member Functions | |
Expression * | possiblyRemove (Expression *e, bool remove) |
Private Attributes | |
OperatorDescriptor * | descriptor_ |
bool | do_not_delete_transient_descriptor_ |
QList< Expression * > | operands_ |
Interaction::Operator::Operator | ( | OperatorDescriptor * | descriptor, |
Operator * | parent = nullptr |
||
) |
|
virtual |
|
virtual |
Implements Interaction::Expression.
Reimplemented in Interaction::UnfinishedOperator.
|
inline |
Expression * Interaction::Operator::at | ( | int | i, |
bool | remove_from_list = false |
||
) |
void Interaction::Operator::clear | ( | ) |
|
inline |
|
inline |
|
virtual |
Implements Interaction::Expression.
|
virtual |
Reimplemented from Interaction::Expression.
Expression * Interaction::Operator::first | ( | bool | remove_from_list = false | ) |
void Interaction::Operator::globalDelimiterBoundaries | ( | int | delim, |
int & | begin, | ||
int & | end | ||
) |
void Interaction::Operator::globalExpressionBoundaries | ( | Expression * | e, |
int & | begin, | ||
int & | end | ||
) |
void Interaction::Operator::insert | ( | Expression * | e, |
int | pos | ||
) |
Expression * Interaction::Operator::last | ( | bool | remove_from_list = false | ) |
|
inline |
|
private |
|
inline |
void Interaction::Operator::remove | ( | Expression * | e | ) |
|
virtual |
Implements Interaction::Expression.
Reimplemented in Interaction::UnfinishedOperator.
Expression * Interaction::Operator::replaceOperand | ( | Expression * | oldExpr, |
Expression * | newExpr | ||
) |
|
inline |
|
inline |
|
virtual |
Reimplemented from Interaction::Expression.
|
virtual |
Reimplemented from Interaction::Expression.
|
inlinestatic |
|
private |
|
private |
|
private |