libpressio 0.93.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pressio_register Class Reference

#include <pressio.h>

Public Member Functions

template<class RegistryType , class NameType , class Factory >
 pressio_register (pressio_registry< RegistryType > &registry, NameType &&name, Factory &&factory)
 

Detailed Description

a class that registers a type on construction, using a type over a function to force it to be called at static construction time

Constructor & Destructor Documentation

◆ pressio_register()

template<class RegistryType , class NameType , class Factory >
pressio_register::pressio_register ( pressio_registry< RegistryType > &  registry,
NameType &&  name,
Factory &&  factory 
)
inline

Registers a new factory with a name in a registry. Designed to be used as a static variable

Parameters
[in]registrythe registry to use
[in]namethe name to register
[in]factorythe factory to register

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