16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_CORE_EXPORT_COMPONENTKEYHANDLER_H
21 #define BORNAGAIN_CORE_EXPORT_COMPONENTKEYHANDLER_H
36 template <
class T> std::vector<const T*>
objectsOfType()
const;
40 std::map<std::string, std::vector<const IComponent*>>
m_objects;
45 std::vector<const T*> ret;
48 if (
const auto* c =
dynamic_cast<const T*
>(s); c)
Stores IComponent instances, associates them with given tag, and provides unique keys.
std::vector< const T * > objectsOfType() const
std::map< std::string, std::vector< const IComponent * > > m_objects
void insertModel(const std::string &tag, const IComponent *s)
std::string obj2key(const IComponent *s) const
Root of class hierarchy for sample and instrument model.