|
HDK
|
#include <UT_TagManager.h>
Classes | |
| class | WeakKey |
Public Types | |
| enum | UT_TagEditOperation { TAG_OP_ADD, TAG_OP_RM, TAG_OP_SET } |
| using | tag_ListType = UT_ConcurrentVector< const char * > |
| using | tag_MapType = UT_ConcurrentHashMap< WeakKey, int, UT_HashFunctor< WeakKey > > |
Public Member Functions | |
| UT_TagListPtr | createList (const char *list, UT_String &errs) |
| UT_TagListPtr | createListForName (int name_index) |
| UT_TagExpressionPtr | createExpression (const char *expr, UT_String &errs) |
| UT_TagExpressionPtr | editExpression (const UT_TagExpressionPtr &expr, const char *name, UT_TagEditOperation op, UT_String &errors) |
| void | getAllNames (UT_StringArray &tags) |
Friends | |
| class | UT_TagList |
| class | UT_TagExpression |
A tag manager keeps track of lists of tags and expressions. It stores them very compactly for efficient processing.
Definition at line 207 of file UT_TagManager.h.
| using UT_TagManager::tag_ListType = UT_ConcurrentVector<const char *> |
Definition at line 244 of file UT_TagManager.h.
Definition at line 246 of file UT_TagManager.h.
| Enumerator | |
|---|---|
| TAG_OP_ADD | |
| TAG_OP_RM | |
| TAG_OP_SET | |
Definition at line 298 of file UT_TagManager.h.
|
inline |
createTagExpression() is used to create a pattern to match against tag lists.
The tag expression can be a very simple expression consisting of
Expressions may be joined with & or | (AND or OR). For example
-foo * & -foo -foo & -bar foo & -bar Expressions are processed left to right with AND at a higher precedence in the order of operations than OR. Thus:
is equivalent to:
Definition at line 291 of file UT_TagManager.h.
|
inline |
getTagList() creates a tag-list object. This is a list of names which are considered as tags for matching (see below). The names allow alphanumeric letters and characters from "_.:"
Definition at line 251 of file UT_TagManager.h.
|
inline |
Definition at line 255 of file UT_TagManager.h.
| UT_TagExpressionPtr UT_TagManager::editExpression | ( | const UT_TagExpressionPtr & | expr, |
| const char * | name, | ||
| UT_TagEditOperation | op, | ||
| UT_String & | errors | ||
| ) |
Apply an edit to an expression. This operation may have bugs, but will always work on a simplified expression.
| void UT_TagManager::getAllNames | ( | UT_StringArray & | tags | ) |
Get a list of all the tags used by any list or pattern we've constructed
|
friend |
Definition at line 333 of file UT_TagManager.h.
|
friend |
Definition at line 332 of file UT_TagManager.h.