Public Member Functions |
Public Attributes |
Private Member Functions |
Private Attributes |
List of all members
Gambit::gambit_core Class Reference Master driver class for a GAMBIT scan. More...
Collaboration diagram for Gambit::gambit_core:
![]()
Detailed DescriptionMember Typedef Documentation◆ fVec
◆ pmfMap
◆ pmfVec
Constructor & Destructor Documentation◆ gambit_core()
Constructor. Definitions of public methods in GAMBIT core class. Constructor Definition at line 60 of file core.cpp. const str input_model_descriptions Filename of the file from which to harvest model descriptions. Definition: core.hpp:83 bool processed_options Flag specifying whether command line options have been processed yet. Definition: core.hpp:89 const str input_capability_descriptions Filename of the file from which to harvest capability descriptions. Definition: core.hpp:81 int show_runorder Flags set by command line options Flag to trigger dependency resolver to report functor run order... Definition: core.hpp:132 ◆ ~gambit_core()
Member Function Documentation◆ accountForMissingClasses()
Tell the module functors which backends are actually present. Tell the module functors which backends are actually present, so that they can deactivate themselves if they require a class that is supposed to be provided by a backend that is AWOL. Definition at line 258 of file core.cpp. References backend_versions, backendData, and functorList. Referenced by main(). 260 // Create a map of all the registered backends that are connected and fully functional (including factories for classloading) 263 for (std::map<str, std::set<str> >::const_iterator it = backend_versions.begin(); it != backend_versions.end(); ++it) 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
Here is the caller graph for this function:
![]() ◆ backend_diagnostic()
Basic backend diagnostic function. Definition at line 56 of file diagnostics.cpp. References backend_status(), backend_versions, backendData, backendFunctorList, Gambit::table_formatter::capitalize_title(), Gambit::table_formatter::default_widths(), Gambit::table_formatter::green(), Gambit::table_formatter::padding(), Gambit::print_to_screen(), Gambit::table_formatter::red(), and Gambit::table_formatter::str(). Referenced by run_diagnostic(). 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; 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 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ backend_status()Compute the status of a given backend. Definition at line 553 of file core.cpp. References backendData. Referenced by backend_diagnostic(), and ff_backend_diagnostic().
Here is the caller graph for this function:
![]() ◆ bail()Command-line info function. Inform the user of the ways to invoke GAMBIT, then die. Definition at line 79 of file core.cpp. References Gambit::Logging::LogMaster::disable(), GET_RANK, and Gambit::logger(). Referenced by process_primary_options(), and run_diagnostic(). Logging::LogMaster & logger() Function to retrieve a reference to the Gambit global log object. Definition: logger.cpp:95
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ capability_diagnostic()
Basic capability diagnostic function. Definition at line 150 of file diagnostics.cpp. References backendFunctorList, capabilities, Gambit::table_formatter::capitalize_title(), Gambit::table_formatter::default_widths(), functorList, Gambit::table_formatter::padding(), Gambit::print_to_screen(), and Gambit::table_formatter::str(). Referenced by run_diagnostic(). 154 table_formatter table("Capabilities", "Available in (modules/models)", "Available in (backends)"); 168 for (fVec::const_iterator jt = backendFunctorList.begin(); jt != backendFunctorList.end(); ++jt)
void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ check_capability_descriptions()
Check for missing capability descriptions (after reading in runtime flags) Definition at line 495 of file core.cpp. References capability_dbase, input_capability_descriptions, and missing_capability_description. Referenced by run_diagnostic(). 501 for (std::vector<capability_info>::const_iterator it = capability_dbase.begin(); it != capability_dbase.end(); ++it) std::vector< capability_info > capability_dbase Vector of all capability_info objects. Definition: core.hpp:217 const str input_capability_descriptions Filename of the file from which to harvest capability descriptions. Definition: core.hpp:81 bool missing_capability_description set to true if capability descriptions missing Definition: core.hpp:211
Here is the caller graph for this function:
![]() ◆ check_databases()
Check the named database for conflicts and missing descriptions. Check the capability and model databases for conflicts and missing descriptions. Definition at line 292 of file core.cpp. References backendFunctorList, Gambit::capability_info::beset, capabilities, capability_dbase, Gambit::DescriptionDatabase::check_for_duplicates(), Gambit::core_error(), Gambit::model_info::descendants, Gambit::capability_info::description, Gambit::model_info::description, functorList, Gambit::DescriptionDatabase::get_all_values(), Gambit::Models::ModelFunctorClaw::get_descendants(), Gambit::Models::ModelFunctorClaw::get_lineage(), Gambit::Models::ModelFunctorClaw::get_parent(), Gambit::DescriptionDatabase::getValue(), Gambit::capability_info::has_description, Gambit::model_info::has_description, Gambit::DescriptionDatabase::hasKey(), input_capability_descriptions, input_model_descriptions, Gambit::model_info::lineage, LOCAL_INFO, missing_capability_description, model_dbase, modelInfo, Gambit::capability_info::modset, Gambit::capability_info::name, Gambit::model_info::name, Gambit::model_info::nparams, Gambit::model_info::parameters, Gambit::model_info::parent, primaryModelFunctorList, and Gambit::Utils::runtime_scratch(). Referenced by run_diagnostic(). 294 // Loop through registered capabilities and try to find their descriptions (potentially from many files, but for now just checking one) 302 // Search through GAMBIT for information about registered capabilities to match to the descriptions 315 if (capinfo.modset.find(origin) == capinfo.modset.end()) capinfo.modset[origin] = std::set<std::pair<str,str> >(); 319 for (fVec::const_iterator jt = backendFunctorList.begin(); jt != backendFunctorList.end(); ++jt) 325 if (capinfo.beset.find(origin) == capinfo.beset.end()) capinfo.beset[origin] = std::set<std::pair<str,str> >(); 340 "must provide the same information. Please rename a capability or delete one of the descriptions."<<endl; 384 for (std::vector<capability_info>::iterator it = capability_dbase.begin(); it != capability_dbase.end(); ++it) 394 outfile << "# Edit \"" << input_capability_descriptions << "\" instead." << endl << endl << out.c_str(); 398 // This is distressingly similar to the capabilities case, but it doesn't seem so straightforward to modularise any further... 400 // Loop through registered models and try to find their descriptions (potentially from many files, but for now just checking one) 408 for (pmfVec::const_iterator it = primaryModelFunctorList.begin(); it != primaryModelFunctorList.end(); ++it) 464 for (std::vector<model_info>::const_iterator it = model_dbase.begin(); it != model_dbase.end(); ++it) 481 for (std::vector<model_info>::const_iterator it = model_dbase.begin(); it != model_dbase.end(); ++it) 490 outfile2 << "# Edit \"" << input_model_descriptions << "\" instead." << endl << endl << out2.c_str(); std::vector< capability_info > capability_dbase Vector of all capability_info objects. Definition: core.hpp:217 str get_parent(const str &) const Retrieve the parent model for a given model. Definition: models.cpp:244 const str input_model_descriptions Filename of the file from which to harvest model descriptions. Definition: core.hpp:83 const str input_capability_descriptions Filename of the file from which to harvest capability descriptions. Definition: core.hpp:81 EXPORT_SYMBOLS const str & runtime_scratch() Return the path the the run-specific scratch directory. Definition: util_functions.cpp:58 bool missing_capability_description set to true if capability descriptions missing Definition: core.hpp:211 std::vector< str > get_lineage(const str &) const Retrieve the lineage for a given model. Definition: models.cpp:250 std::vector< str > get_descendants(const str &) const Retrieve the descendants for a given model. Definition: models.cpp:238
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ ff_backend_diagnostic()Free-form backend diagnostic function. Definition at line 292 of file diagnostics.cpp. References backend_status(), backend_versions, backendData, backendFunctorList, Gambit::table_formatter::bottom_line(), Gambit::table_formatter::capitalize_title(), Gambit::table_formatter::default_widths(), combine_hdf5::f, Gambit::table_formatter::green(), Gambit::table_formatter::padding(), Gambit::print_to_screen(), Gambit::table_formatter::red(), Gambit::table_formatter::rows(), Gambit::table_formatter::str(), and Gambit::table_formatter::top_line(). Referenced by run_diagnostic(). 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"); 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 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ ff_capability_diagnostic()Free-form capability diagnostic function. Definition at line 426 of file diagnostics.cpp. References Gambit::capability_info::beset, capabilities, Gambit::capability_info::description, get_capability_info(), Gambit::capability_info::modset, and Gambit::print_to_screen(). Referenced by run_diagnostic(). 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)
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 print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ ff_model_diagnostic()Free-form model diagnostic function. Definition at line 389 of file diagnostics.cpp. References Gambit::model_info::descendants, Gambit::model_info::description, get_model_info(), Gambit::model_info::lineage, Gambit::model_info::name, Gambit::model_info::nparams, Gambit::model_info::parameters, Gambit::model_info::parent, primaryModelFunctorList, and Gambit::print_to_screen(). Referenced by run_diagnostic(). 393 for (pmfVec::const_iterator it = primaryModelFunctorList.begin(); it != primaryModelFunctorList.end(); ++it) 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 print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ ff_module_diagnostic()Free-form diagnostic functions. Free-form module diagnostic function. Definition at line 232 of file diagnostics.cpp. References Gambit::table_formatter::capitalize_title(), Gambit::table_formatter::default_widths(), combine_hdf5::f, functorList, modules, Gambit::table_formatter::new_titles(), Gambit::table_formatter::newline(), Gambit::table_formatter::no_newline(), Gambit::table_formatter::padding(), Gambit::print_to_screen(), Gambit::table_formatter::row_pos(), and Gambit::table_formatter::str(). Referenced by run_diagnostic(). void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ ff_prior_diagnostic()Definition at line 221 of file diagnostics.cpp. References Gambit::Scanner::Plugins::plugin_info, and Gambit::print_to_screen(). Referenced by run_diagnostic(). EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ ff_scanner_diagnostic()Free-form scanner diagnostic function. Definition at line 470 of file diagnostics.cpp. References Gambit::Scanner::Plugins::plugin_info, and Gambit::print_to_screen(). Referenced by run_diagnostic(). EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ ff_test_function_diagnostic()Free-form test function diagnostic function. Definition at line 478 of file diagnostics.cpp. References Gambit::Scanner::Plugins::plugin_info, and Gambit::print_to_screen(). Referenced by run_diagnostic(). EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ get_capability_info()
Get the description (and other info) of the named item from the capability database. Get the description of the named capability from the description database. Definition at line 513 of file core.cpp. References capability_dbase, Gambit::core_error(), and LOCAL_INFO. Referenced by ff_capability_diagnostic(). 526 errmsg << "No capability with the name \""<<name<< "\" could be found in the capability database. " 527 "This function should not run when we don't know if the capability exists! Either there is a bug " std::vector< capability_info > capability_dbase Vector of all capability_info objects. Definition: core.hpp:217
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ get_model_info()
Get the description (and other info) of the named item from the model database. Definition at line 533 of file core.cpp. References Gambit::core_error(), LOCAL_INFO, and model_dbase. Referenced by ff_model_diagnostic(). 545 errmsg << "No model with the name \""<<name<< "\" could be found in the model database. This function " 546 "should not run when we don't know if the model exists! Either there is a bug in the calling code, or "
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ get_outprec()
Getter for precision to use for cout. Definition at line 76 of file core.cpp. References outprec. Referenced by Gambit::DRes::DependencyResolver::calcObsLike().
Here is the caller graph for this function:
![]() ◆ getActiveModelFunctors()
Get a reference to the map of all user-activated primary model functors. Definition at line 253 of file core.cpp. References activeModelFunctorList. Referenced by Gambit::Likelihood_Container_Factory::Likelihood_Container_Factory(). pmfMap activeModelFunctorList A map of all user-activated primary model functors. Definition: core.hpp:78
Here is the caller graph for this function:
![]() ◆ getBackendFunctors()
Get a reference to the list of backend model functors. Get a reference to the list of backend functors. Definition at line 247 of file core.cpp. References backendFunctorList. Referenced by main(), Gambit::DRes::DependencyResolver::makeFunctorsModelCompatible(), Gambit::DRes::DependencyResolver::printFunctorList(), and Gambit::DRes::DependencyResolver::solveRequirement().
Here is the caller graph for this function:
![]() ◆ getBackends()Get a reference to the map of all registered backends. ◆ getModuleFunctors()
Get a reference to the list of module functors. Definition at line 241 of file core.cpp. References functorList. Referenced by Gambit::DRes::DependencyResolver::addFunctors(), and main().
Here is the caller graph for this function:
![]() ◆ getNestedModuleFunctors()
Get a reference to the list of nested module functors. Definition at line 244 of file core.cpp. References nestedFunctorList. fVec nestedFunctorList List of all module functors that are declared as nested (i.e. require loop managers) ... Definition: core.hpp:69 ◆ getPrimaryModelFunctors()
Get a reference to the list of primary model functors. Definition at line 250 of file core.cpp. References primaryModelFunctorList. Referenced by Gambit::DRes::DependencyResolver::addFunctors().
Here is the caller graph for this function:
![]() ◆ launch_diagnostic_MPI()
Launch MPI and return the rank, for limiting diagnostic output to master node. ◆ model_diagnostic()
Basic model diagnostic function. Definition at line 120 of file diagnostics.cpp. References Gambit::table_formatter::capitalize_title(), Gambit::table_formatter::default_widths(), Gambit::Models::ModelFunctorClaw::get_parent(), modelInfo, Gambit::table_formatter::padding(), primaryModelFunctorList, Gambit::print_to_screen(), Gambit::Utils::runtime_scratch(), and Gambit::table_formatter::str(). Referenced by run_diagnostic(). 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; str get_parent(const str &) const Retrieve the parent model for a given model. Definition: models.cpp:244 EXPORT_SYMBOLS const str & runtime_scratch() Return the path the the run-specific scratch directory. Definition: util_functions.cpp:58 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ module_diagnostic()
Basic diagnostic functions. Basic module diagnostic function. Definition at line 34 of file diagnostics.cpp. References Gambit::table_formatter::capitalize_title(), Gambit::table_formatter::default_widths(), functorList, modules, Gambit::table_formatter::padding(), Gambit::print_to_screen(), and Gambit::table_formatter::str(). Referenced by run_diagnostic(). void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ prior_diagnostic()
Definition at line 214 of file diagnostics.cpp. References Gambit::Scanner::Plugins::plugin_info, and Gambit::print_to_screen(). Referenced by run_diagnostic(). EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ process_primary_options()Process default command line options. Process default mode command line options and return filename. Gambit 'standard mode' command line option definitions (needed by getopt) Definition at line 125 of file core.cpp. References bail(), developer_mode, Gambit::Logging::LogMaster::disable(), found_inifile, GET_SIZE, combine_hdf5::index, Gambit::logger(), processed_options, resume, show_runorder, and verbose_flag. Referenced by run_diagnostic(). 133 // (http://www.gnu.org/savannah-checkouts/gnu/libc/manual/html_node/Getopt-Long-Option-Example.html#Getopt-Long-Option-Example) 181 cout << "Tried to run GAMBIT dry-run mode in parallel! This is not allowed, please use only one process when performing dry-runs." << endl;
bool processed_options Flag specifying whether command line options have been processed yet. Definition: core.hpp:89 Logging::LogMaster & logger() Function to retrieve a reference to the Gambit global log object. Definition: logger.cpp:95 int show_runorder Flags set by command line options Flag to trigger dependency resolver to report functor run order... Definition: core.hpp:132
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ quit_diagnostic_MPI()
Quit MPI used for diagnostic mode. ◆ registerActiveModelFunctors()Add entries to the map of activated primary model functors. Definition at line 232 of file core.cpp. References activeModelFunctorList. Referenced by main(). pmfMap activeModelFunctorList A map of all user-activated primary model functors. Definition: core.hpp:78
Here is the caller graph for this function:
![]() ◆ registerBackend()Register a new backend. Definition at line 222 of file core.cpp. References backend_versions. Referenced by Gambit::register_backend(). 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
Here is the caller graph for this function:
![]() ◆ registerBackendFunctor()Add a new backend functor to backendFunctorList. Definition at line 215 of file core.cpp. References backendFunctorList, capabilities, and Gambit::functor::capability(). Referenced by Gambit::register_backend_functor().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ registerModule()Add a new module to modules list. Definition at line 202 of file core.cpp. References modules. Referenced by Gambit::register_module().
Here is the caller graph for this function:
![]() ◆ registerModuleFunctor()Add a new module functor to functorList. Definition at line 205 of file core.cpp. References capabilities, Gambit::functor::capability(), and functorList. Referenced by Gambit::register_module_functor_core().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ registerNestedModuleFunctor()Add a new module functor to nestFunctorList. Definition at line 212 of file core.cpp. References nestedFunctorList. Referenced by Gambit::register_management_req(). fVec nestedFunctorList List of all module functors that are declared as nested (i.e. require loop managers) ... Definition: core.hpp:69
Here is the caller graph for this function:
![]() ◆ registerPrimaryModelFunctor()
Add a new primary model functor to primaryModelFunctorList. Definition at line 225 of file core.cpp. References capabilities, Gambit::functor::capability(), and primaryModelFunctorList. Referenced by Gambit::register_model_functor_core().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ run_diagnostic()Diagnostics function. Launch non-interactive command-line diagnostic mode, for printing info about current GAMBIT configuration. Definition at line 588 of file core.cpp. References Gambit::Utils::are_similar(), backend_diagnostic(), backend_versions, bail(), capabilities, capability_diagnostic(), check_capability_descriptions(), check_databases(), Gambit::Logging::LogMaster::disable(), Gambit::Logging::LogMaster::emit_backlog(), ff_backend_diagnostic(), ff_capability_diagnostic(), ff_model_diagnostic(), ff_module_diagnostic(), ff_prior_diagnostic(), ff_scanner_diagnostic(), ff_test_function_diagnostic(), found_inifile, GET_RANK, Gambit::logger(), model_diagnostic(), module_diagnostic(), modules, Gambit::Scanner::Plugins::plugin_info, primaryModelFunctorList, prior_diagnostic(), process_primary_options(), processed_options, scanner_diagnostic(), and test_function_diagnostic(). Referenced by main(). 626 // If we aren't just checking what stuff is registered, we could end up running a scan, or needing the descriptions of things. 627 // Therefore we must construct the description databases and make sure there are no naming conflicts etc. 633 for (auto it = backend_versions.begin(); it != backend_versions.end(); ++it) valid_commands.push_back(it->first); 634 for (auto it = primaryModelFunctorList.begin(); it != primaryModelFunctorList.end(); ++it) valid_commands.push_back((*it)->origin()); 635 std::vector<std::string> scanner_names = Scanner::Plugins::plugin_info().print_plugin_names("scanner"); 636 std::vector<std::string> objective_names = Scanner::Plugins::plugin_info().print_plugin_names("objective"); 643 // If the user hasn't asked for a diagnostic at all, process the command line options for the standard run mode and get out. 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 void ff_capability_diagnostic(str &) Free-form capability diagnostic function. Definition: diagnostics.cpp:426 void check_databases() Check the named database for conflicts and missing descriptions. Definition: core.cpp:292 void emit_backlog(bool verbose) Print the backlogs to the default log file. Definition: logmaster.cpp:137 bool processed_options Flag specifying whether command line options have been processed yet. Definition: core.hpp:89 void ff_prior_diagnostic(str &) Definition: diagnostics.cpp:221 void ff_scanner_diagnostic(str &) Free-form scanner diagnostic function. Definition: diagnostics.cpp:470 Logging::LogMaster & logger() Function to retrieve a reference to the Gambit global log object. Definition: logger.cpp:95 str process_primary_options(int, char **) Process default command line options. Definition: core.cpp:125 void test_function_diagnostic() Basic test function diagnostic function. Definition: diagnostics.cpp:207 void ff_test_function_diagnostic(str &) Free-form test function diagnostic function. Definition: diagnostics.cpp:478 EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void check_capability_descriptions() Check for missing capability descriptions (after reading in runtime flags) Definition: core.cpp:495 EXPORT_SYMBOLS bool are_similar(const str &s1, const str &s2) Check if two strings are a "close" match Used for "did you mean?" type checking during command line a... Definition: util_functions.cpp:314 void ff_backend_diagnostic(str &) Free-form backend diagnostic function. Definition: diagnostics.cpp:292
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ scanner_diagnostic()
Basic scanner diagnostic function. Definition at line 198 of file diagnostics.cpp. References Gambit::Scanner::Plugins::plugin_info, and Gambit::print_to_screen(). Referenced by run_diagnostic(). EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ test_function_diagnostic()
Basic test function diagnostic function. Definition at line 207 of file diagnostics.cpp. References Gambit::Scanner::Plugins::plugin_info, and Gambit::print_to_screen(). Referenced by run_diagnostic(). EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 void print_to_screen(const std::string &file_in, const std::string &name) Definition: screen_print_utils.cpp:205
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() Member Data Documentation◆ activeModelFunctorList
A map of all user-activated primary model functors. Definition at line 78 of file core.hpp. Referenced by getActiveModelFunctors(), and registerActiveModelFunctors(). ◆ backend_versionsMap from backend names to a list of all registered versions of the backend. Definition at line 57 of file core.hpp. Referenced by accountForMissingClasses(), backend_diagnostic(), ff_backend_diagnostic(), registerBackend(), and run_diagnostic(). ◆ backendData
Internal backend info pointer. Definition at line 51 of file core.hpp. Referenced by accountForMissingClasses(), backend_diagnostic(), backend_status(), and ff_backend_diagnostic(). ◆ backendFunctorList
List of all declared backend functors. Definition at line 72 of file core.hpp. Referenced by backend_diagnostic(), capability_diagnostic(), check_databases(), ff_backend_diagnostic(), getBackendFunctors(), and registerBackendFunctor(). ◆ capabilities
List of all declared capabilities. Definition at line 60 of file core.hpp. Referenced by capability_diagnostic(), check_databases(), ff_capability_diagnostic(), registerBackendFunctor(), registerModuleFunctor(), registerPrimaryModelFunctor(), and run_diagnostic(). ◆ capability_dbase
Vector of all capability_info objects. Definition at line 217 of file core.hpp. Referenced by check_capability_descriptions(), check_databases(), and get_capability_info(). ◆ developer_mode
Developer mode (ignore missing capability descriptions) Definition at line 145 of file core.hpp. Referenced by process_primary_options(). ◆ found_inifile
Flag recording whether an inifile has been supplied. Definition at line 142 of file core.hpp. Referenced by process_primary_options(), and run_diagnostic(). ◆ functorList
List of all declared module functors. Definition at line 66 of file core.hpp. Referenced by accountForMissingClasses(), capability_diagnostic(), check_databases(), ff_module_diagnostic(), getModuleFunctors(), module_diagnostic(), and registerModuleFunctor(). ◆ input_capability_descriptions
Filename of the file from which to harvest capability descriptions. Definition at line 81 of file core.hpp. Referenced by check_capability_descriptions(), and check_databases(). ◆ input_model_descriptions
Filename of the file from which to harvest model descriptions. Definition at line 83 of file core.hpp. Referenced by check_databases(). ◆ missing_capability_description
set to true if capability descriptions missing Definition at line 211 of file core.hpp. Referenced by check_capability_descriptions(), and check_databases(). ◆ model_dbase
Vector of all model_info objects. Definition at line 220 of file core.hpp. Referenced by check_databases(), and get_model_info(). ◆ modelInfo
Internal model claw pointer. Definition at line 48 of file core.hpp. Referenced by check_databases(), and model_diagnostic(). ◆ models
◆ modules
Set of all declared modules. Definition at line 54 of file core.hpp. Referenced by ff_module_diagnostic(), module_diagnostic(), registerModule(), and run_diagnostic(). ◆ nestedFunctorList
List of all module functors that are declared as nested (i.e. require loop managers) Definition at line 69 of file core.hpp. Referenced by getNestedModuleFunctors(), and registerNestedModuleFunctor(). ◆ outprec
◆ primaryModelFunctorList
List of all declared primary model functors. Definition at line 75 of file core.hpp. Referenced by check_databases(), ff_model_diagnostic(), getPrimaryModelFunctors(), model_diagnostic(), registerPrimaryModelFunctor(), and run_diagnostic(). ◆ processed_options
Flag specifying whether command line options have been processed yet. Definition at line 89 of file core.hpp. Referenced by process_primary_options(), and run_diagnostic(). ◆ resume
Flag to trigger "resume" mode. Definition at line 135 of file core.hpp. Referenced by main(), and process_primary_options(). ◆ show_runorder
Flags set by command line options Flag to trigger dependency resolver to report functor run order. Definition at line 132 of file core.hpp. Referenced by Gambit::DRes::DependencyResolver::doResolution(), Gambit::DRes::DependencyResolver::generateTree(), and process_primary_options(). ◆ verbose_flag
The documentation for this class was generated from the following files:
|