Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
virtual | ~CompositeQuery () override |
Query * | addQuery (std::unique_ptr< Query > &&query) |
Adds the query to this CompositeQuery. More... | |
void | connectInput (int inputIndex, Query *to, int atInput=0) |
void | connectQuery (Query *from, int outIndex, Query *to, int inIndex) |
void | connectQuery (Query *from, Query *to) |
Connects output 0 from Query from to input 0 of Query to. More... | |
void | connectToOutput (int queryOutIndex, Query *from, int compositeOutIndex) |
virtual QList< Optional< TupleSet > > | execute (QList< TupleSet > input) override |
int | inputCount () const |
int | outputCount () const |
virtual void | setHasInput () override |
Public Member Functions inherited from InformationScripting::Query | |
Query (Model::Node *target=nullptr) | |
virtual | ~Query ()=default |
bool | hasInput () const |
Model::Node * | target () const |
Private Member Functions | |
void | addInputMapping (QueryNodeInCompositeQuery *outNode, int outIndex, QueryNodeInCompositeQuery *inNode, int inIndex) |
void | addOutputMapping (QueryNodeInCompositeQuery *outNode, int outIndex, QueryNodeInCompositeQuery *inNode) |
QueryNodeInCompositeQuery * | nodeForQuery (Query *q) |
Private Attributes | |
QueryNodeInCompositeQuery * | inNode_ {new QueryNodeInCompositeQuery{nullptr}} |
QList< QueryNodeInCompositeQuery * > | nodes_ |
QueryNodeInCompositeQuery * | outNode_ {new QueryNodeInCompositeQuery{nullptr}} |
|
overridevirtual |
|
private |
|
private |
Adds the query to this CompositeQuery.
This CompositeQuery will take ownership of query. The returned value is the underlying raw pointer in query which can be used to wire query with other queries.
void InformationScripting::CompositeQuery::connectInput | ( | int | inputIndex, |
Query * | to, | ||
int | atInput = 0 |
||
) |
void InformationScripting::CompositeQuery::connectQuery | ( | Query * | from, |
int | outIndex, | ||
Query * | to, | ||
int | inIndex | ||
) |
void InformationScripting::CompositeQuery::connectToOutput | ( | int | queryOutIndex, |
Query * | from, | ||
int | compositeOutIndex | ||
) |
|
overridevirtual |
Implements InformationScripting::Query.
|
inline |
|
private |
|
inline |
|
overridevirtual |
Reimplemented from InformationScripting::Query.
|
private |
|
private |
|
private |