FastMM documentation
FastMM C++ API 0.6.0
Public headers, tier 1 and tier 2
Loading...
Searching...
No Matches
fastmm::venues::VenueRegistry Class Reference

#include <fastmm/venues/registry.hpp>

Public Member Functions

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.
 

Static Public Member Functions

static VenueRegistry & instance ()
 The registry fastmm-live resolves kind through.
 

Member Function Documentation

◆ 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()

AddResult fastmm::venues::VenueRegistry::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.

◆ 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.