|
Code_TYMPAN
4.4.0
Industrial site acoustic simulation
|
A manager class for Material. More...
#include <Material.h>

Public Member Functions | |
| MaterialManager () | |
| Constructor. More... | |
| ~MaterialManager () | |
| Destructor. More... | |
| unsigned int | registerNewMaterial (Material *m) |
| Register a new material into the list. More... | |
| Material * | requestMaterial (unsigned int key) |
| Return a material from the list by its index. More... | |
| void | print () |
| Print the materials list. More... | |
Protected Attributes | |
| std::map< unsigned int, Material * > | materials |
| Pointer list to materials. More... | |
| unsigned int | counterKey |
| Counter of materials into the list. More... | |
A manager class for Material.
Definition at line 68 of file Material.h.
|
inline |
Constructor.
Definition at line 73 of file Material.h.
| MaterialManager::~MaterialManager | ( | ) |
Destructor.
Definition at line 18 of file Material.cpp.
| void MaterialManager::print | ( | ) |
Print the materials list.
Definition at line 47 of file Material.cpp.
| unsigned int MaterialManager::registerNewMaterial | ( | Material * | m | ) |
Register a new material into the list.
Definition at line 26 of file Material.cpp.

| Material * MaterialManager::requestMaterial | ( | unsigned int | key | ) |
Return a material from the list by its index.
Definition at line 62 of file Material.cpp.
|
protected |
Counter of materials into the list.
Definition at line 85 of file Material.h.
|
protected |
Pointer list to materials.
Definition at line 84 of file Material.h.