16 #error no need to expose this header to Swig
20 #ifndef BORNAGAIN_CORE_EXPORT_MATERIALKEYHANDLER_H
21 #define BORNAGAIN_CORE_EXPORT_MATERIALKEYHANDLER_H
36 const std::map<const std::string, const Material*>&
materialMap()
const;
41 std::map<const std::string, const Material*>
m_Key2Mat;
Stores Material instances, associates them with given tag, and provides unique keys.
const std::map< const std::string, const Material * > & materialMap() const
void insertMaterial(const Material *sample)
const std::string & mat2key(const Material *sample) const
std::map< const Material *, const Material * > m_Mat2Unique
std::map< const std::string, const Material * > m_Key2Mat
A wrapper for underlying material implementation.