22 std::map<std::string, std::shared_ptr<AbstractTimeDependence> >();
25 const std::string& name) {
26 const auto pos =
td_map.find(name);
29 "AbstractTimeDependence::getTimeDependence",
30 "Could not find TimeDependence called " + name);
36 const std::string& name, std::shared_ptr<AbstractTimeDependence> time_dep) {
37 td_map[name] = std::move(time_dep);
41 const std::shared_ptr<AbstractTimeDependence>& time_dep) {
42 for (
auto& [name, dep] :
td_map) {
43 if (dep == time_dep) {
50 "AbstractTimeDependence::getTimeDependence",
51 "Could not find TimeDependence with address " + ss.str());
static std::map< std::string, std::shared_ptr< AbstractTimeDependence > > td_map
static void setTimeDependence(const std::string &name, std::shared_ptr< AbstractTimeDependence > time_dep)
static std::string getName(const std::shared_ptr< AbstractTimeDependence > &time_dep)
static std::shared_ptr< AbstractTimeDependence > getTimeDependence(const std::string &name)