NetDEM
v1.0
Loading...
Searching...
No Matches
contact_model_factory.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
contact_model.hpp
"
4
#include <string>
5
#include <unordered_map>
6
7
namespace
netdem
{
8
17
class
ContactModelFactory
{
18
public
:
21
static
std::unordered_map<std::string, ContactModel::Type>
model_map
;
22
37
static
ContactModel
*
NewContactModel
(std::string
const
&model_name,
38
nlohmann::json
const
&js);
39
};
40
41
}
// namespace netdem
netdem::ContactModelFactory
A factory class for creating contact models.
Definition
contact_model_factory.hpp:17
netdem::ContactModelFactory::model_map
static std::unordered_map< std::string, ContactModel::Type > model_map
Definition
contact_model_factory.hpp:21
netdem::ContactModelFactory::NewContactModel
static ContactModel * NewContactModel(std::string const &model_name, nlohmann::json const &js)
Create a new instance of a contact model by name and configuration data.
Definition
contact_model_factory.cpp:18
netdem::ContactModel
An abstract base class for contact models.
Definition
contact_model.hpp:25
contact_model.hpp
netdem
Definition
bond_entry.hpp:7
netdem
src
dem
contact_model_factory.hpp
Generated by
1.12.0