BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Stores IComponent instances, associates them with given tag, and provides unique keys. More...
Public Member Functions | |
void | insertModel (const std::string &tag, const IComponent *s) |
std::string | obj2key (const IComponent *s) const |
template<class T > | |
std::vector< const T * > | objectsOfType () const |
Private Attributes | |
std::map< std::string, std::vector< const IComponent * > > | m_objects |
Stores IComponent instances, associates them with given tag, and provides unique keys.
Definition at line 32 of file ComponentKeyHandler.h.
void ComponentKeyHandler::insertModel | ( | const std::string & | tag, |
const IComponent * | s | ||
) |
Definition at line 20 of file ComponentKeyHandler.cpp.
References m_objects.
std::string ComponentKeyHandler::obj2key | ( | const IComponent * | s | ) | const |
std::vector< const T * > ComponentKeyHandler::objectsOfType |
|
private |
Definition at line 40 of file ComponentKeyHandler.h.
Referenced by insertModel(), obj2key(), and objectsOfType().