Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
Interaction::UnfinishedOperator Class Reference
Inheritance diagram for Interaction::UnfinishedOperator:
Interaction::Operator Interaction::Expression

Public Member Functions

 UnfinishedOperator (OperatorDescriptor *descriptor, Operator *parent=nullptr)
 
virtual void accept (ExpressionVisitor *visitor)
 
void addNext (Expression *e=nullptr)
 
OperatorcreateFinished ()
 
bool isComplete ()
 
QString next ()
 
int numComplete ()
 
virtual QString renderText ()
 
- Public Member Functions inherited from Interaction::Operator
 Operator (OperatorDescriptor *descriptor, Operator *parent=nullptr)
 
virtual ~Operator ()
 
void append (Expression *e)
 
Expressionat (int i, bool remove_from_list=false)
 
void clear ()
 
bool contains (Expression *e)
 
OperatorDescriptordescriptor ()
 
virtual ExpressionContext findContext (int cursor_pos)
 
virtual ExpressionfindCutExpression (bool leftside, QString cut_string)
 
Expressionfirst (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)
 
Expressionlast (bool remove_from_list=false)
 
const QList< Expression * > operands ()
 
void prepend (Expression *e)
 
void remove (Expression *e)
 
ExpressionreplaceOperand (Expression *oldExpr, Expression *newExpr)
 
void setDoNotDeleteTransientDescriptor (bool doNotDelete)
 
int size ()
 
virtual ExpressionsmallestLeftmostSubExpr ()
 
virtual ExpressionsmallestRightmostSubExpr ()
 
- Public Member Functions inherited from Interaction::Expression
 Expression (const int type, Operator *parent=nullptr)
 
virtual ~Expression ()
 
int length ()
 
Operatorparent ()
 
void removeFromParent ()
 
void setParent (Operator *new_parent)
 
int type ()
 

Static Public Member Functions

static UnfinishedOperatorreplaceFinishedWithUnfinished (Expression *&top, Operator *op)
 
- Static Public Member Functions inherited from Interaction::Operator
static int type ()
 

Private Attributes

int num_complete_
 

Constructor & Destructor Documentation

◆ UnfinishedOperator()

Interaction::UnfinishedOperator::UnfinishedOperator ( OperatorDescriptor descriptor,
Operator parent = nullptr 
)

Member Function Documentation

◆ accept()

void Interaction::UnfinishedOperator::accept ( ExpressionVisitor visitor)
virtual

Reimplemented from Interaction::Operator.

◆ addNext()

void Interaction::UnfinishedOperator::addNext ( Expression e = nullptr)

◆ createFinished()

Operator * Interaction::UnfinishedOperator::createFinished ( )

◆ isComplete()

bool Interaction::UnfinishedOperator::isComplete ( )

◆ next()

QString Interaction::UnfinishedOperator::next ( )

◆ numComplete()

int Interaction::UnfinishedOperator::numComplete ( )
inline

◆ renderText()

QString Interaction::UnfinishedOperator::renderText ( )
virtual

Reimplemented from Interaction::Operator.

◆ replaceFinishedWithUnfinished()

UnfinishedOperator * Interaction::UnfinishedOperator::replaceFinishedWithUnfinished ( Expression *&  top,
Operator op 
)
static

Member Data Documentation

◆ num_complete_

int Interaction::UnfinishedOperator::num_complete_
private