open_iA 2025.6
Loading...
Searching...
No Matches
iAAutoRegistration< Base, Class, Registry > Class Template Reference

Automatically register classes with a registry by deriving from this class. More...

#include <iAAutoRegistration.h>

Public Member Functions

 iAAutoRegistration ()
 

Detailed Description

template<class Base, class Class, class Registry>
class iAAutoRegistration< Base, Class, Registry >

Automatically register classes with a registry by deriving from this class.

As template parameters pass the classes Base class, the Class itself, and the Registry class. Automatically creates a factory function with no parameters returning a std::shared_ptr<Base> with an instance of Class; requires that the Registry has an add function that expects such a factory function as parameter.

Constructor & Destructor Documentation

◆ iAAutoRegistration()

template<class Base, class Class, class Registry>
iAAutoRegistration< Base, Class, Registry >::iAAutoRegistration ( )
inline

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