BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Base for factories. More...
Public Types | |
using | function_t = std::function< std::unique_ptr< Value >()> |
using | map_t = std::map< Key, function_t > |
Public Member Functions | |
bool | add (const Key &key, function_t func) |
map_t::iterator | begin () |
bool | contains (const Key &item_key) const |
std::unique_ptr< Value > | create (const Key &item_key) const |
map_t::iterator | end () |
size_t | size () const |
Private Attributes | |
map_t | m_data |
Base for factories.
Definition at line 28 of file ifactory.h.
using ModelView::IFactory< Key, Value >::function_t = std::function<std::unique_ptr<Value>()> |
Definition at line 30 of file ifactory.h.
using ModelView::IFactory< Key, Value >::map_t = std::map<Key, function_t> |
Definition at line 31 of file ifactory.h.
|
inline |
|
inline |
|
inline |
Definition at line 33 of file ifactory.h.
References ModelView::IFactory< Key, Value >::m_data.
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 62 of file ifactory.h.
Referenced by ModelView::IFactory< Key, Value >::add(), ModelView::IFactory< Key, Value >::begin(), ModelView::IFactory< Key, Value >::contains(), ModelView::IFactory< Key, Value >::create(), ModelView::IFactory< Key, Value >::end(), and ModelView::IFactory< Key, Value >::size().