BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Stores Material instances, associates them with given tag, and provides unique keys. More...
Public Member Functions | |
void | insertMaterial (const Material *sample) |
const std::string & | mat2key (const Material *sample) const |
const std::map< const std::string, const Material * > & | materialMap () const |
Private Attributes | |
std::map< const std::string, const Material * > | m_Key2Mat |
std::map< const Material *, const Material * > | m_Mat2Unique |
Stores Material instances, associates them with given tag, and provides unique keys.
Definition at line 32 of file MaterialKeyHandler.h.
void MaterialKeyHandler::insertMaterial | ( | const Material * | sample | ) |
Definition at line 22 of file MaterialKeyHandler.cpp.
References Material::getName(), m_Key2Mat, and m_Mat2Unique.
const std::string & MaterialKeyHandler::mat2key | ( | const Material * | sample | ) | const |
Definition at line 39 of file MaterialKeyHandler.cpp.
References ASSERT, m_Key2Mat, and m_Mat2Unique.
const std::map< const std::string, const Material * > & MaterialKeyHandler::materialMap | ( | ) | const |
Definition at line 48 of file MaterialKeyHandler.cpp.
References m_Key2Mat.
|
private |
Definition at line 41 of file MaterialKeyHandler.h.
Referenced by insertMaterial(), mat2key(), and materialMap().
Definition at line 40 of file MaterialKeyHandler.h.
Referenced by insertMaterial(), and mat2key().