|
| template<typename... Args> |
| bool | add (Args &&... args) |
| bool | add (const char *tag) |
| bool | add (const std::string &tag) |
| bool | add (const std::vector< std::string > &tags) |
| bool | add (std::initializer_list< std::string > tags) |
| void | clear () |
| bool | empty () const |
| template<typename... Args> |
| bool | has (Args &&... args) const |
| bool | has (const char *tag) const |
| bool | has (const std::string &tag) const |
| bool | has (const std::vector< std::string > &tags) const |
| bool | has (const std::vector< std::vector< std::string > > &query) const |
| bool | has (std::initializer_list< std::string > tags) const |
| std::vector< std::string > | list () const |
| template<typename... Args> |
| bool | remove (Args &&... args) |
| bool | remove (const char *tag) |
| bool | remove (const std::string &tag) |
| bool | remove (const std::vector< std::string > &tags) |
| bool | remove (std::initializer_list< std::string > tags) |
| size_t | size () const |
| | Tags (void *parent=nullptr) |
| Public Member Functions inherited from visutwin::canvas::EventHandler |
| template<typename... Args> |
| EventHandler * | fire (const std::string &name, Args &&... args) |
| bool | hasEvent (const std::string &name) const |
| void | initEventHandler () |
template<typename Callback>
requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) |
| EventHandler * | off (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandler * | off (const std::string &name="", const HandleEventCallback &callback=HandleEventCallback(), void *scope=nullptr) |
| EventHandler * | offByHandle (EventHandle *handle) |
template<typename Callback>
requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) |
| EventHandle * | on (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | on (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
template<typename Callback>
requires (!std::is_same_v<std::decay_t<Callback>, HandleEventCallback>) |
| EventHandle * | once (const std::string &name, Callback &&callback, void *scope=nullptr) |
| EventHandle * | once (const std::string &name, HandleEventCallback callback, void *scope=nullptr) |
| virtual | ~EventHandler ()=default |
Tags is a powerful tag management system for categorizing and filtering objects in VisuTwin applications. It provides an efficient way to attach string identifiers to objects and query them using logical operations.
Tags are automatically available on Assets and Entities (see Asset::tags and GraphNode::tags). You can search for specific assets via AssetRegistry::findByTag and specific entities via GraphNode::findByTag.
Definition at line 26 of file tags.h.