CatapultServer  v0.5.0.1 (Elephant)
catapult::model::PluginRegistry< TPlugin, TPluginKey > Class Template Reference

A registry of plugins. More...

Public Member Functions

size_t size () const
 Gets the number of registered plugins. More...
 
const TPlugin * findPlugin (TPluginKey type) const
 Finds the plugin corresponding to type or nullptr if none is registered. More...
 
void registerPlugin (std::unique_ptr< const TPlugin > &&pPlugin)
 Registers pPlugin with the registry. More...
 

Private Attributes

std::vector< std::unique_ptr< const TPlugin > > m_plugins
 

Detailed Description

template<typename TPlugin, typename TPluginKey>
class catapult::model::PluginRegistry< TPlugin, TPluginKey >

A registry of plugins.

Member Function Documentation

◆ findPlugin()

template<typename TPlugin, typename TPluginKey>
const TPlugin* catapult::model::PluginRegistry< TPlugin, TPluginKey >::findPlugin ( TPluginKey  type) const
inline

Finds the plugin corresponding to type or nullptr if none is registered.

Here is the caller graph for this function:

◆ registerPlugin()

template<typename TPlugin, typename TPluginKey>
void catapult::model::PluginRegistry< TPlugin, TPluginKey >::registerPlugin ( std::unique_ptr< const TPlugin > &&  pPlugin)
inline

Registers pPlugin with the registry.

Here is the caller graph for this function:

◆ size()

template<typename TPlugin, typename TPluginKey>
size_t catapult::model::PluginRegistry< TPlugin, TPluginKey >::size ( ) const
inline

Gets the number of registered plugins.

Member Data Documentation

◆ m_plugins

template<typename TPlugin, typename TPluginKey>
std::vector<std::unique_ptr<const TPlugin> > catapult::model::PluginRegistry< TPlugin, TPluginKey >::m_plugins
private

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