Audacity 3.2.0
Public Member Functions | List of all members
Registry::RegisteredItem< RegistryClass > Class Template Reference

Generates classes whose instances register items at construction. More...

#include <Registry.h>

Inheritance diagram for Registry::RegisteredItem< RegistryClass >:

Public Member Functions

template<typename Ptr >
 RegisteredItem (Ptr pItem, const Placement &placement={})

Detailed Description

template<typename RegistryClass>
class Registry::RegisteredItem< RegistryClass >

Generates classes whose instances register items at construction.

Usually constructed statically

Template Parameters
RegistryClassdefines static member Registry() returning GroupItem<RegistryTraits>&, for some traits class

Definition at line 388 of file Registry.h.

Constructor & Destructor Documentation

◆ RegisteredItem()

template<typename RegistryClass >
template<typename Ptr >
Registry::RegisteredItem< RegistryClass >::RegisteredItem ( Ptr  pItem,
const Placement placement = {} 

Definition at line 391 of file Registry.h.

391 {})
392 {
393 if (pItem)
394 RegisterItem(RegistryClass::Registry(), placement, move(pItem));
395 }
void RegisterItem(GroupItem< RegistryTraits > &registry, const Placement &placement, std::unique_ptr< Item > pItem)
Definition: Registry.h:371

The documentation for this class was generated from the following file: