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

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

#include <Registry.h>

Inheritance diagram for Registry::RegisteredItem< Item, RegistryClass >:
[legend]

Public Member Functions

 RegisteredItem (std::unique_ptr< Item > pItem, const Placement &placement)
 

Detailed Description

template<typename Item, typename RegistryClass = Item>
class Registry::RegisteredItem< Item, RegistryClass >

Generates classes whose instances register items at construction.

Usually constructed statically

Template Parameters
Iteminherits BaseItem
RegistryClassdefines static member Registry() returning GroupItemBase&

Definition at line 242 of file Registry.h.

Constructor & Destructor Documentation

◆ RegisteredItem()

template<typename Item , typename RegistryClass = Item>
Registry::RegisteredItem< Item, RegistryClass >::RegisteredItem ( std::unique_ptr< Item >  pItem,
const Placement placement 
)
inline

Definition at line 244 of file Registry.h.

245 {
246 if (pItem)
248 RegistryClass::Registry(), placement, std::move( pItem ) );
249 }
void RegisterItem(GroupItemBase &registry, const Placement &placement, BaseItemPtr pItem)
Definition: Registry.cpp:774

References Registry::RegisterItem().

Here is the call graph for this function:

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