models.cpp
Go to the documentation of this file.
52 primodel_vec ModelFunctorClaw::getPrimaryModelFunctorsToActivate (std::set<str> selectedmodels, const primodel_vec& primaryModelFunctors) 113 void ModelFunctorClaw::checkPrimaryModelFunctorUsage(const activemodel_map& activeModelFunctors) const 141 for (std::vector<std::string>::iterator it = unusedmodels.begin(); it != unusedmodels.end(); ++it) 181 for (std::set<str>::iterator parent = allmodelnames.begin(); parent != allmodelnames.end(); ++parent) 201 std::set<str> temp1, temp2, lineage(myLineageDB[newfriend].begin(), myLineageDB[newfriend].end()); 202 set_union(myFriendsDB[model].begin(), myFriendsDB[model].end(), lineage.begin(), lineage.end(), inserter(temp1, temp1.begin())); 204 set_union(temp1.begin(), temp1.end(), myFriendsDB[newfriend].begin(), myFriendsDB[newfriend].end(), inserter(temp2, temp2.begin())); 240 return myDescendantsDB.find(model) == myDescendantsDB.end() ? std::vector<str>() : myDescendantsDB.at(model); 252 return myLineageDB.find(model) == myLineageDB.end() ? std::vector<str>() : myLineageDB.at(model); 264 return myBestFriendsDB.find(model) == myBestFriendsDB.end() ? std::set<str>() : myBestFriendsDB.at(model); std::map< str, std::set< str > > myBestFriendsDB Definition: models.hpp:74 bool upstream_of(const str &, const str &) const Check if model 1 exists somewhere upstream of model 2, allowing model 2 to be interpreted as model 1... Definition: models.cpp:298 std::vector< primary_model_functor * > primodel_vec Definition: models.hpp:50 Model helper declarations. std::map< str, std::set< str > > myFriendsDB Definition: models.hpp:73 void checkPrimaryModelFunctorUsage(const activemodel_map &) const Active model functor "usefulness" checker. Definition: models.cpp:113 Functors specific to primary ModelParameters objects. Definition: functors.hpp:1001 std::map< str, str > myParentsDB Definition: models.hpp:69 void verify_model(const str &) const Verify that a string matches a model recognised by GAMBIT, crash otherwise. Definition: models.cpp:226 std::set< str > allmodelnames Definition: models.hpp:68 std::set< str > get_friends(const str &model) const Retrieve the friends for a given model. Definition: models.cpp:256 str get_parent(const str &) const Retrieve the parent model for a given model. Definition: models.cpp:244 bool downstream_of(const str &, const str &) const Check if model 1 exists somewhere downstream of (and can be therefore be interpreted as a) model 2... Definition: models.cpp:286 primodel_vec getPrimaryModelFunctorsToActivate(std::set< str >, const primodel_vec &) Model activation function. Definition: models.cpp:52 const std::set< str > & get_allmodels() const Return set of all models recognised by GAMBIT. Definition: models.cpp:103 std::map< std::string, primary_model_functor * >::const_iterator activemodel_it Definition: models.cpp:41 Functor class definitions. std::set< str > get_activemodels() const Return the set of active models;. Definition: models.cpp:106 void add_friend(const str &model, const str &newfriend) Add a friend, and all its friends and ancestors, to a model's list of friends. Definition: models.cpp:189 std::map< str, std::vector< str > > myLineageDB Definition: models.hpp:70 bool ancestor_of(const str &, const str &) const Check if model 1 is an ancestor of model 2. Definition: models.cpp:280 std::map< str, primary_model_functor * > activemodel_map Definition: models.hpp:51 bool model_exists(const str &) const Indicate whether a model is recognised by GAMBIT or not. Definition: models.cpp:209 bool descended_from(const str &, const str &) const Check if model 1 is descended from model 2. Definition: models.cpp:268 std::set< str > get_best_friends(const str &model) const Retrieve the best friends for a given model. Definition: models.cpp:262 std::map< str, std::vector< str > > myDescendantsDB Definition: models.hpp:71 std::vector< str > get_lineage(const str &) const Retrieve the lineage for a given model. Definition: models.cpp:250 void declare_model(const str &, const str &) Add a new model to the model database. Definition: models.cpp:151 std::vector< str > get_descendants(const str &) const Retrieve the descendants for a given model. Definition: models.cpp:238 int status() const Getter for the wrapped function current status: -4 = required backend absent (backend ini functions) ... Definition: functors.cpp:134 |