class
#include <keymatcher.h>
KeyMatcher Matches keys (fully qualified parameter names) against user-defined patterns.
Contents
Constructors, destructors, conversion operators
- KeyMatcher()
- Default constructor.
- KeyMatcher(std::initializer_list<std::string_view> keys)
- Constructor which accepts a list of patterns to match against.
- KeyMatcher(const std::vector<std::string_view>& keys) explicit
- Constructor which accepts a list of patterns to match against.
- ~KeyMatcher()
- Destructor.
- KeyMatcher(const KeyMatcher& other)
- Copy constructor.
- KeyMatcher(KeyMatcher&& other) noexcept
- Move constructor.
Public functions
- auto operator=(const KeyMatcher& other) -> KeyMatcher&
- Assignment operator.
- auto operator=(KeyMatcher&& other) -> KeyMatcher& noexcept
- Move assignment operator.
- void RegisterKey(std::string_view key)
- Registers an additional key (pattern) to match against.
- auto Match(std::string_view query) const -> bool
- Checks if the given key matches any of the registered patterns.
- auto Empty() const -> bool
- Checks if the matcher is empty (no patterns registered).