Code_TYMPAN  4.4.0
Industrial site acoustic simulation
Public Member Functions | Protected Attributes | List of all members
MaterialManager Class Reference

A manager class for Material. More...

#include <Material.h>

Collaboration diagram for MaterialManager:
Collaboration graph
[legend]

Public Member Functions

 MaterialManager ()
 Constructor. More...
 
 ~MaterialManager ()
 Destructor. More...
 
unsigned int registerNewMaterial (Material *m)
 Register a new material into the list. More...
 
MaterialrequestMaterial (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...
 

Detailed Description

A manager class for Material.

Definition at line 68 of file Material.h.

Constructor & Destructor Documentation

◆ MaterialManager()

MaterialManager::MaterialManager ( )
inline

Constructor.

Definition at line 73 of file Material.h.

◆ ~MaterialManager()

MaterialManager::~MaterialManager ( )

Destructor.

Definition at line 18 of file Material.cpp.

Member Function Documentation

◆ print()

void MaterialManager::print ( )

Print the materials list.

Definition at line 47 of file Material.cpp.

◆ registerNewMaterial()

unsigned int MaterialManager::registerNewMaterial ( Material m)

Register a new material into the list.

Definition at line 26 of file Material.cpp.

Here is the call graph for this function:

◆ requestMaterial()

Material * MaterialManager::requestMaterial ( unsigned int  key)

Return a material from the list by its index.

Definition at line 62 of file Material.cpp.

Member Data Documentation

◆ counterKey

unsigned int MaterialManager::counterKey
protected

Counter of materials into the list.

Definition at line 85 of file Material.h.

◆ materials

std::map<unsigned int, Material*> MaterialManager::materials
protected

Pointer list to materials.

Definition at line 84 of file Material.h.


The documentation for this class was generated from the following files: