Material info database.
More...
#include <plask/material/info.hpp>
|
static DB & | getDefault () |
| Get default database of materials' meta-information.
|
|
Material info database.
Definition at line 326 of file info.hpp.
◆ const_iterator
const iterator over materials' meta-information
Definition at line 391 of file info.hpp.
◆ iterator
iterator over materials' meta-information
Definition at line 388 of file info.hpp.
◆ add() [1/2]
Add meta-information about material to database.
- Parameters
-
materialName | name of material to add |
- Returns
- material info object which allow to fill detailed information
Definition at line 220 of file info.cpp.
◆ add() [2/2]
MaterialInfo & plask::MaterialInfo::DB::add |
( |
const std::string & |
materialName, |
|
|
const std::string & |
parentMaterial |
|
) |
| |
Add meta-information about material to database.
- Parameters
-
materialName | name of material to add |
parentMaterial | parent material, from which all properties all inherited (some may be overwritten) |
- Returns
- material info object which allow to fill detailed information
Definition at line 214 of file info.cpp.
◆ begin() [1/2]
iterator plask::MaterialInfo::DB::begin |
( |
| ) |
|
|
inline |
Get begin iterator over materials' meta-information.
- Returns
- begin iterator over materials' meta-information
Definition at line 397 of file info.hpp.
◆ begin() [2/2]
Get const begin iterator over materials' meta-information.
- Returns
- const begin iterator over materials' meta-information
Definition at line 403 of file info.hpp.
◆ clear()
void plask::MaterialInfo::DB::clear |
( |
| ) |
|
|
inline |
Clear the database.
Definition at line 342 of file info.hpp.
◆ end() [1/2]
iterator plask::MaterialInfo::DB::end |
( |
| ) |
|
|
inline |
Get end iterator over materials' meta-information.
- Returns
- end iterator over materials' meta-information
Definition at line 409 of file info.hpp.
◆ end() [2/2]
Get const end iterator over materials' meta-information.
- Returns
- const end iterator over materials' meta-information
Definition at line 415 of file info.hpp.
◆ get() [1/2]
plask::optional< MaterialInfo > plask::MaterialInfo::DB::get |
( |
const std::string & |
materialName, |
|
|
bool |
with_inherited_info = true |
|
) |
| const |
Get meta-information about material from database.
- Parameters
-
materialName | name of material to get information about |
with_inherited_info | if true (default) returned object will consists also with information inherited from parent, grand-parent, etc. materials |
- Returns
- meta-information about material with name
materialName
, no value if meta-information of requested material are not included in data-base
Definition at line 224 of file info.cpp.
◆ get() [2/2]
Get meta-information about material's property from database.
- Parameters
-
materialName,propertyName | name of material and its property to get information about |
with_inherited_info | if true (default) returned object will consists also with information inherited from parent, grand-parent, etc. materials |
- Returns
- meta-information about material's property from database, no value if meta-information of requested material are not included in data-base
Definition at line 239 of file info.cpp.
◆ getDefault()
Get default database of materials' meta-information.
- Returns
- default database of materials' meta-information
Definition at line 210 of file info.cpp.
◆ update()
Update with values from different database.
- Parameters
-
Definition at line 350 of file info.hpp.
The documentation for this class was generated from the following files: