23 #include <boost/functional/hash.hpp>
37 : name_(parameter_name) {}
41 :
TypeBase(other), name_(other.name_) {}
56 boost::hash_combine(seed,
"Parameter");
66 auto parameter_iter = std::find_if(
vec.begin(),
vec.end(),
67 [
this](
const ParameterPair & item) ->
bool { return item.first == this->name_; });
68 if (parameter_iter !=
vec.end()) {
70 parameter_map[parameter_iter->first] = parameter_iter->second->content_hash();
71 return std::make_pair( parameter_iter->second, parameter_map );
74 THROW( ExcParamaterNotSubsituted() << EI_Object(this->
name_));
92 : generic_type_(generic_type), parameters_(parameters) {}
97 boost::hash_combine(seed,
"Instance");
100 boost::hash_combine(seed, (*it).first );
101 boost::hash_combine(seed, (*it).second->content_hash() );
130 }
catch (ExcParamaterNotSubsituted &e) {
133 for(
auto &item :
vec) aux_map[item.first]=0;
141 #ifdef FLOW123D_DEBUG_ASSERTS
146 for(
auto &item :
vec) aux_map[item.first]=0;
149 .error(
"Unused parameter in input type instance");
#define THROW(whole_exception_expr)
Wrapper for throw. Saves the throwing point.