diagnostics.cpp
Go to the documentation of this file.
59 table_formatter table("Backends", "Version", "Path to lib", "Status ", " #func ", "#types ", "#ctors"); 65 for (std::map<str, std::set<str> >::const_iterator it = backend_versions.begin(); it != backend_versions.end(); ++it) 78 // Count up the number of functions in this version of the backend, using the registered functors. 81 if ((*kt)->origin() == it->first and (*kt)->version() == *jt) nfuncs++; // If backend matches, increment the count of the functions in this version 87 std::set<str> classes = backendData->classes.at(it->first+*jt); // Retrieve classes loaded by this version 91 nctors += backendData->factory_args.at(it->first+*jt+*kt).size(); // Add the number of factories for this class to the total 112 if (all_good) out << endl << endl << "\033[032m" << "All your backend are belong to us." << "\033[0m" << endl; 127 for (pmfVec::const_iterator it = primaryModelFunctorList.begin(); it != primaryModelFunctorList.end(); ++it) 142 out << endl << "To get postscript plot of model hierarchy, please install graphviz, rerun cmake and remake GAMBIT." << endl; 154 table_formatter table("Capabilities", "Available in (modules/models)", "Available in (backends)"); 168 for (fVec::const_iterator jt = backendFunctorList.begin(); jt != backendFunctorList.end(); ++jt) 296 for (std::map<str, std::set<str> >::const_iterator it = backend_versions.begin(); it != backend_versions.end(); ++it) 309 const str status = backend_status(it->first, *jt, who_cares); // Save the status of this backend 322 for (fVec::const_iterator kt = backendFunctorList.begin(); kt != backendFunctorList.end(); ++kt) 350 if (backendData->classes.find(it->first+*jt) != backendData->classes.end()) classes = backendData->classes.at(it->first+*jt); 378 const str my_def = (defs.find(it->first) != defs.end() ? backendData->version_from_safe_version(it->first,defs.at(it->first)) : "none"); 393 for (pmfVec::const_iterator it = primaryModelFunctorList.begin(); it != primaryModelFunctorList.end(); ++it) 439 origins.push_back(std::pair<str, std::map<str, std::set<std::pair<str,str> > > >("modules", cap.modset)); 440 origins.push_back(std::pair<str, std::map<str, std::set<std::pair<str,str> > > >("backends", cap.beset)); 442 for (std::vector< std::pair<str, std::map<str, std::set<std::pair<str,str> > > > >::const_iterator it = origins.begin(); it != origins.end(); ++it) 448 for (std::map<str, std::set<std::pair<str,str> > >::const_iterator jt = it->second.begin(); jt != it->second.end(); ++jt) 452 for (std::set<std::pair<str,str> >::const_iterator kt = jt->second.begin(); kt != jt->second.end(); ++kt) Define overloadings of the stream operator for various containers. std::map< str, std::set< str > > backend_versions Map from backend names to a list of all registered versions of the backend. Definition: core.hpp:57 table_formatter & green(int i=-1, int j=-1) Definition: table_formatter.hpp:347 table_formatter & red(int i=-1, int j=-1) Definition: table_formatter.hpp:342 void ff_capability_diagnostic(str &) Free-form capability diagnostic function. Definition: diagnostics.cpp:426 void new_titles(const T &... in) Definition: table_formatter.hpp:163 std::map< str, std::set< std::pair< str, str > > > modset Set of modules and module functions in which capability is used, along with corresponding result type... Definition: yaml_description_database.hpp:45 Helper struct to carry around model information. Definition: yaml_description_database.hpp:55 str get_parent(const str &) const Retrieve the parent model for a given model. Definition: models.cpp:244 Definition: table_formatter.hpp:115 table_formatter & newline(int j=-1) Definition: table_formatter.hpp:387 Utility Functions for the Gambit Scanner. General small utility functions. table_formatter & no_newline(int j=-1) Definition: table_formatter.hpp:382 const capability_info get_capability_info(const str &) const Get the description (and other info) of the named item from the capability database. Definition: core.cpp:513 void ff_prior_diagnostic(str &) Definition: diagnostics.cpp:221 void ff_scanner_diagnostic(str &) Free-form scanner diagnostic function. Definition: diagnostics.cpp:470 const model_info get_model_info(const str &) const Get the description (and other info) of the named item from the model database. Definition: core.cpp:533 void capitalize_title(int i) Definition: table_formatter.hpp:201 std::map< str, std::set< std::pair< str, str > > > beset Set of backends and backend functions in which capability is used, along with corresponding type sign... Definition: yaml_description_database.hpp:47 GAMBIT Core driver class. Model graph declarations. void test_function_diagnostic() Basic test function diagnostic function. Definition: diagnostics.cpp:207 Helper struct to carry around capability information. Definition: yaml_description_database.hpp:40 void default_widths(const T &... in) Definition: table_formatter.hpp:174 Utility Functions for the Gambit Scanner. void ff_test_function_diagnostic(str &) Free-form test function diagnostic function. Definition: diagnostics.cpp:478 EXPORT_SYMBOLS const str & runtime_scratch() Return the path the the run-specific scratch directory. Definition: util_functions.cpp:58 std::vector< str > descendants All children and later descendants. Definition: yaml_description_database.hpp:68 std::vector< str > lineage Parent and all ancestor models. Definition: yaml_description_database.hpp:66 Loader singleton class for scanner plugins. EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void ff_backend_diagnostic(str &) Free-form backend diagnostic function. Definition: diagnostics.cpp:292 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205 |