16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_SIM_EXPORT_COMPONENTKEYHANDLER_H
21 #define BORNAGAIN_SIM_EXPORT_COMPONENTKEYHANDLER_H
40 std::map<std::string, std::vector<const INode*>>
m_objects;
46 std::vector<const T*> result;
48 for (
const INode* s : it.second)
49 if (
const auto* c =
dynamic_cast<const T*
>(s); c)
50 result.emplace_back(c);
Stores INode instances, associates them with given tag, and provides unique keys.
std::vector< const T * > objectsOfType() const
std::string obj2key(const INode *s) const
std::map< std::string, std::vector< const INode * > > m_objects
void insertModel(const std::string &tag, const INode *s)
Base class for tree-like structures containing parameterized objects.