#include <fastmm/venues/registry.hpp>
|
| AddResult | add (VenueEntry entry) |
| | Registering the same factory under the same name again changes nothing (AlreadyPresent); anything that would replace an entry, or a name an entry already claims as an alias, changes nothing and returns Conflict.
|
| |
| const VenueEntry * | find (std::string_view kind) const noexcept |
| | By kind: the entry's name or one of its aliases.
|
| |
| const std::vector< VenueEntry > & | entries () const noexcept |
| |
| std::string | kinds () const |
| | Every accepted kind, names and aliases, comma-separated, for an error message.
|
| |
◆ instance()
| static VenueRegistry & fastmm::venues::VenueRegistry::instance |
( |
| ) |
|
|
static |
The registry fastmm-live resolves kind through.
Not thread-safe for writers: register before starting threads. Tests use a local registry.
◆ add()
Registering the same factory under the same name again changes nothing (AlreadyPresent); anything that would replace an entry, or a name an entry already claims as an alias, changes nothing and returns Conflict.
◆ find()
| const VenueEntry * fastmm::venues::VenueRegistry::find |
( |
std::string_view |
kind | ) |
const |
|
noexcept |
By kind: the entry's name or one of its aliases.
◆ entries()
| const std::vector< VenueEntry > & fastmm::venues::VenueRegistry::entries |
( |
| ) |
const |
|
inlinenoexcept |
◆ kinds()
| std::string fastmm::venues::VenueRegistry::kinds |
( |
| ) |
const |
Every accepted kind, names and aliases, comma-separated, for an error message.