Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorRegistry::Registry< Factory > Class Template Reference

#include <PhosphorRegistry/Registry.h>

Public Member Functions

 Registry ()=default
 ~Registry ()=default
bool registerFactory (std::shared_ptr< Factory > factory, const QString &ownerTag=QString(), DuplicatePolicy policy=DuplicatePolicy::Reject)
bool unregisterFactory (const QString &id)
int unregisterByOwner (const QString &ownerTag)
void clear ()
std::shared_ptr< Factory > factory (const QString &id) const
QList< QString > ids () const
template<typename Visitor>
void forEach (Visitor &&visitor) const
RegistryNotifier * notifier ()
const RegistryNotifier * notifier () const
bool isEmpty () const
qsizetype size () const

Constructor & Destructor Documentation

◆ Registry()

template<typename Factory>
PhosphorRegistry::Registry< Factory >::Registry ( )
default

◆ ~Registry()

template<typename Factory>
PhosphorRegistry::Registry< Factory >::~Registry ( )
default

Member Function Documentation

◆ clear()

template<typename Factory>
void PhosphorRegistry::Registry< Factory >::clear ( )
inline

◆ factory()

template<typename Factory>
std::shared_ptr< Factory > PhosphorRegistry::Registry< Factory >::factory ( const QString & id) const
inlinenodiscard

◆ forEach()

template<typename Factory>
template<typename Visitor>
void PhosphorRegistry::Registry< Factory >::forEach ( Visitor && visitor) const
inline

◆ ids()

template<typename Factory>
QList< QString > PhosphorRegistry::Registry< Factory >::ids ( ) const
inlinenodiscard

◆ isEmpty()

template<typename Factory>
bool PhosphorRegistry::Registry< Factory >::isEmpty ( ) const
inlinenodiscard

◆ notifier() [1/2]

template<typename Factory>
RegistryNotifier * PhosphorRegistry::Registry< Factory >::notifier ( )
inlinenodiscard

◆ notifier() [2/2]

template<typename Factory>
const RegistryNotifier * PhosphorRegistry::Registry< Factory >::notifier ( ) const
inlinenodiscard

◆ registerFactory()

template<typename Factory>
bool PhosphorRegistry::Registry< Factory >::registerFactory ( std::shared_ptr< Factory > factory,
const QString & ownerTag = QString(),
DuplicatePolicy policy = DuplicatePolicy::Reject )
inline

◆ size()

template<typename Factory>
qsizetype PhosphorRegistry::Registry< Factory >::size ( ) const
inlinenodiscard

◆ unregisterByOwner()

template<typename Factory>
int PhosphorRegistry::Registry< Factory >::unregisterByOwner ( const QString & ownerTag)
inline

◆ unregisterFactory()

template<typename Factory>
bool PhosphorRegistry::Registry< Factory >::unregisterFactory ( const QString & id)
inline

The documentation for this class was generated from the following file:
  • phosphor-registry/include/PhosphorRegistry/Registry.h