Public Member Functions | |
Finder (Document *doc, QArray< int > *typefilter, const char *argument, bool ignoreCase) | |
Creates a new finder with a new search term. | |
~Finder (void) | |
Deletes this instance. | |
void | findGenericNode (GenericNode *node, const NodeAddress &addrParent) |
Starts the search at the given node. | |
const NodeAddress * | first () |
Retrieves the first node in the found list. | |
const NodeAddress * | next () |
Retrieves the next in the found list. | |
Private Member Functions | |
void | findTypeNode (TypeNode *node, const NodeAddress &addrParent) |
Searches in a TypeNode. | |
void | findStrucNode (StrucNode *node, const NodeAddress &addrParent) |
Searches in a StrucNode. | |
void | findFeatvalNode (FeatvalNode *node, const NodeAddress &addrParent) |
Searches in a FeatvalNode. | |
void | findListNode (ListNode *node, const NodeAddress &addrParent) |
Searches in a ListNode. | |
void | findSetNode (SetNode *node, const NodeAddress &addrParent) |
Searches in a SetNode. | |
void | findFunctionNode (FunctionNode *node, const NodeAddress &addrParent) |
Searches in a FunctionNode. | |
void | findRefNode (RefNode *node, const NodeAddress &addrParent) |
Searches in a RefNode. | |
void | findReentNode (ReentNode *node, const NodeAddress &addrParent) |
Searches in a ReentNode. | |
void | findTreeNode (TreeNode *node, const NodeAddress &addrParent) |
Searches in a TreeNode. | |
void | findAtomNode (AtomNode *node, const NodeAddress &addrParent) |
Searches in a AtomNode. | |
void | findRelNode (RelationNode *node, const NodeAddress &addrParent) |
Searches in a RelNode. | |
void | findTailNode (TailNode *node, const NodeAddress &addrParent) |
Searches in a TailNode. | |
void | findRestNode (RestNode *node, const NodeAddress &addrParent) |
Searches in a RestNode. | |
void | findDisjunctionNode (DisjunctionNode *node, const NodeAddress &addrParent) |
Searches within a DisjunctionNode. | |
void | findConjunctionNode (ConjunctionNode *node, const NodeAddress &addrParent) |
Searches within a ConjunctionNode. | |
int | strCmp (const char *s1, const char *s2) |
String compare that ignores case in the comparison depending on the value of ignoreCase . | |
Private Attributes | |
QList< NodeAddress > * | foundList |
The list of addresses of nodes that match the search term. | |
char * | argument |
The search term. | |
QArray< int > * | typefilter |
An array that contains all types of nodes to be included in the next search. | |
Document * | d |
The document that contains the data structure to be searched. | |
bool | ignoreCase |
true if all string comparisons should ignore case, false otherwise. |
The node addresses of all nodes that match the search term are kept in a list. Using the built-in type filter, it is possible to selectively include and exclude nodes in or from the search based on their type.
|
Creates a new finder with a new search term.
|
|
Deletes this instance.
|
|
Searches in a AtomNode.
|
|
Searches within a ConjunctionNode.
|
|
Searches within a DisjunctionNode.
|
|
Searches in a FeatvalNode.
|
|
Searches in a FunctionNode.
|
|
Starts the search at the given node.
After calling this function, the addresses of the found nodes can be retrieved with
|
|
Searches in a ListNode.
|
|
Searches in a ReentNode.
|
|
Searches in a RefNode.
|
|
Searches in a RelNode.
|
|
Searches in a RestNode.
|
|
Searches in a SetNode.
|
|
Searches in a StrucNode.
|
|
Searches in a TailNode.
|
|
Searches in a TreeNode.
|
|
Searches in a TypeNode.
|
|
Retrieves the first node in the found list.
|
|
Retrieves the next in the found list.
|
|
String compare that ignores case in the comparison depending on the value of
|
|
The search term.
|
|
The document that contains the data structure to be searched.
|
|
The list of addresses of nodes that match the search term.
|
|
|
|
An array that contains all types of nodes to be included in the next search.
Valid values for array elements are the |