functor_definitions.hpp
Go to the documentation of this file.
95 << " cannot be used" << endl << "because it requires classes from a backend that you do not have installed." 97 for (auto it = missing_backends.begin(); it != missing_backends.end(); ++it) ss << endl << " " << *it; 100 boost::io::ios_flags_saver ifs(cout); // Don't allow module functions to change the output precision of cout 109 this->myFunction(myValue[thread_num]); //Run and place result in the appropriate slot in myValue 159 void module_functor<TYPE>::print(Printers::BasePrinter* printer, const int pointID, int thread_num) 161 // Only try to print if print flag set to true, and if this functor(+thread) hasn't already been printed 162 // TODO: though actually the printer system will probably cark it if printing from multiple threads is 163 // attempted, because it uses the VertexID to differentiate print streams, and this is shared among threads. 166 if(myPrintFlag and not already_printed[thread_num] and type()!="void") // myPrintFlag should anyway not be true for void result types 168 if (not iRunNested) thread_num = 0; // Force printing of thread_num=0 if this functor cannot run nested. 169 int rank = printer->getRank(); // This is "first pass" printing, so use the actual rank of this process. 172 logger() << LogTags::debug << "Printing "<<myLabel<<" (vID="<<myVertexID<<", rank="<<rank<<", pID="<<pointID<<")" << EOM; 180 if (not iRunNested) thread_num = 0; // Force printing of thread_num=0 if this functor cannot run nested. 183 logger() << LogTags::debug << "Printing "<<myTimingLabel<<" (vID="<<myTimingVertexID<<", rank="<<rank<<", pID="<<pointID<<")" << EOM; 191 void module_functor<TYPE>::print(Printers::BasePrinter* printer, const int pointID) { print(printer,pointID,0); } 198 backend_functor_common<PTR_TYPE, TYPE, ARGS...>::backend_functor_common (funcPtrType inputFunction, 238 typename backend_functor_common<PTR_TYPE, TYPE, ARGS...>::funcPtrType backend_functor_common<PTR_TYPE, TYPE, ARGS...>::handoutFunctionPointer() 245 str backend_functor_common<PTR_TYPE, TYPE, ARGS...>::safe_version() const { return mySafeVersion; } 263 backend_functor<TYPE(*)(ARGS...), TYPE, ARGS...>::backend_functor (TYPE (*inputFunction)(ARGS...), 289 backend_functor<void(*)(ARGS...), void, ARGS...>::backend_functor (void (*inputFunction)(ARGS...), 314 (typename variadic_ptr<TYPE,ARGS...>::type inputFunction, str func_name, str func_capability, str result_type, 316 : backend_functor_common<typename variadic_ptr<TYPE,ARGS...>::type, TYPE, ARGS...>(inputFunction, func_name, 324 (typename variadic_ptr<void,ARGS...>::type inputFunction, str func_name, str func_capability, str result_type, 326 : backend_functor_common<typename variadic_ptr<void,ARGS...>::type, void, ARGS...>(inputFunction, func_name,
Backend functor class for functions with result type TYPE and argumentlist ARGS. Definition: functors.hpp:833 Model helper declarations. A safe pointer that throws an informative error if you try to dereference it when nullified... Definition: util_types.hpp:175 Actual module functor type for all but TYPE=void. Definition: functors.hpp:745 void entering_module(int) Set the internal variables tracking which module and/or backend is currently running. Definition: logmaster.cpp:620 Logging access header for GAMBIT. module_functor(void(*)(TYPE &), str, str, str, str, Models::ModelFunctorClaw &) Constructor. Definition: functor_definitions.hpp:59 Functor derived class for module functions. Definition: functors.hpp:399 Models object that performs initialisation and checking operations on a primary_model_functor list... Definition: models.hpp:55 Definition: log_tags.hpp:35 Functor class definitions. const Logging::endofmessage EOM Explicit const instance of the end of message struct in Gambit namespace. Definition: logger.hpp:100 EXPORT_SYMBOLS Logging::LogMaster & logger() Function to retrieve a reference to the Gambit global log object. Definition: logger.cpp:95 Declaration and definition of printer base class. Exception objects required for standalone compilation. TYPE(*)(ARGS...) funcPtrType Type of the function pointer being encapsulated. Definition: functors.hpp:842 |