libpressio 0.93.0
|
#include <pressio.h>
Public Types | |
using | value_type = T |
using | reference = T & |
using | const_reference = T const |
Public Member Functions | |
T | build (std::string const &name) const |
template<class Name , class Factory > | |
void | regsiter_factory (Name &&name, Factory &&factory) |
auto | begin () const -> decltype(factories.begin()) |
auto | end () const -> decltype(factories.end()) |
bool | contains (std::string const &key) const |
auto | find (std::string const &key) const -> decltype(factories.find(key)) |
auto | find (std::string const &key) -> decltype(factories.find(key)) |
size_t | size () const |
a type that registers constructor functions
using pressio_registry< T >::const_reference = T const |
the const reference type the registry constructs
using pressio_registry< T >::reference = T& |
the reference type the registry constructs
using pressio_registry< T >::value_type = T |
the value type the registry constructs
|
inline |
|
inline |
construct a element of the registered type
[in] | name | the item to construct |
|
inline |
checks if the name is registered
[in] | key | the key to search for |
|
inline |
|
inline |
checks if the name is registered
[in] | key | the key to search for |
|
inline |
checks if the name is registered
[in] | key | the key to search for |
|
inline |
register a factory function with the registry at the provided name
[in] | name | the name to register |
[in] | factory | the constructor function which takes 0 arguments |