PLaSK library
Loading...
Searching...
No Matches
plask::MaterialsDB::Register< MaterialType > Struct Template Reference

Helper which calls getDefault().add<MaterialType>([name]) in constructor. More...

#include <plask/material/db.hpp>

Public Member Functions

 Register (const std::string &name)
 
 Register ()
 

Detailed Description

template<typename MaterialType>
struct plask::MaterialsDB::Register< MaterialType >

Helper which calls getDefault().add<MaterialType>([name]) in constructor.

Creating global objects of this type allow to fill the default database.

Definition at line 83 of file db.hpp.

Constructor & Destructor Documentation

◆ Register() [1/2]

template<typename MaterialType >
plask::MaterialsDB::Register< MaterialType >::Register ( const std::string &  name)
inline

Definition at line 84 of file db.hpp.

◆ Register() [2/2]

template<typename MaterialType >
plask::MaterialsDB::Register< MaterialType >::Register ( )
inline

Definition at line 85 of file db.hpp.


The documentation for this struct was generated from the following file: