Public Member Functions |
Protected Member Functions |
Protected Attributes |
Private Attributes |
List of all members
Gambit::Printers::BaseBasePrinter Class Referenceabstract
Collaboration diagram for Gambit::Printers::BaseBasePrinter:
![]()
Detailed DescriptionDefinition at line 75 of file basebaseprinter.hpp. Constructor & Destructor Documentation◆ BaseBasePrinter()
Definition at line 84 of file basebaseprinter.hpp. bool printer_enabled Flag to check if print functions are enabled or disabled. Definition: basebaseprinter.hpp:162 bool printUnitcube Definition: basebaseprinter.hpp:81 int printer_cooldown Counter for printer cooldown. If non-zero printer can be disabled for a fixed number of print calls... Definition: basebaseprinter.hpp:165 ◆ ~BaseBasePrinter()
Definition at line 85 of file basebaseprinter.hpp. References flush(), and reset().
Here is the call graph for this function:
![]() Member Function Documentation◆ _print() [1/2]
template<typename T >
Default _print function. Throws an error if no matching virtual function for the type of the attempted print is found. Definition at line 171 of file basebaseprinter.hpp. References Gambit::LogTags::err, LOCAL_INFO, Gambit::Printers::printer_error(), and STRINGIFY. Referenced by _print(), and print(). Definition: log_tags.hpp:38
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ _print() [2/2]
template<typename T >
Same for overloaded function. Definition at line 193 of file basebaseprinter.hpp. References _print(). void _print(T const &, const std::string &label, const int vertexID, const uint, const ulong) Default _print function. Definition: basebaseprinter.hpp:171
Here is the call graph for this function:
![]() ◆ addToPrintList()
Definition at line 109 of file basebaseprinter.hpp. References resume_reader_options(). std::set< std::string > print_list Definition: basebaseprinter.hpp:79
Here is the call graph for this function:
![]() ◆ disable()"Turn off" printer; i.e. calls to print functions will do nothing while this is active Optionally, disable printer just for the next n print calls unless it was already disabled Definition at line 123 of file basebaseprinter.hpp. References generate_raster_scan_settings::n, printer_cooldown, and printer_enabled. Referenced by Gambit::Likelihood_Container::main(). bool printer_enabled Flag to check if print functions are enabled or disabled. Definition: basebaseprinter.hpp:162 int printer_cooldown Counter for printer cooldown. If non-zero printer can be disabled for a fixed number of print calls... Definition: basebaseprinter.hpp:165
Here is the caller graph for this function:
![]() ◆ enable()
"Turn on" printer; print calls will work as normal. Reset cooldown Definition at line 132 of file basebaseprinter.hpp. References printer_cooldown, and printer_enabled. bool printer_enabled Flag to check if print functions are enabled or disabled. Definition: basebaseprinter.hpp:162 int printer_cooldown Counter for printer cooldown. If non-zero printer can be disabled for a fixed number of print calls... Definition: basebaseprinter.hpp:165 ◆ finalise()
Signal printer that scan is finished, and final output needs to be performed. Referenced by Gambit::Scanner::Plugins::pluginInfo::dump(), and set_resume().
Here is the caller graph for this function:
![]() ◆ flush()
Signal printer to flush data in buffers to disk Printers should do this automatically as needed, but this is useful if a scanner is printing a bunch of data as a batch, to make sure it is all on disk after the batch is done. Referenced by Gambit::Scanner::TWalk(), and ~BaseBasePrinter().
Here is the caller graph for this function:
![]() ◆ get_printUnitcube()
Definition at line 102 of file basebaseprinter.hpp. References printUnitcube. bool printUnitcube Definition: basebaseprinter.hpp:81 ◆ get_resume()
◆ getPrintList()
Retrieve/Set print list for this printer Required by e.g. postprocessor. Definition at line 107 of file basebaseprinter.hpp. References print_list. std::set< std::string > print_list Definition: basebaseprinter.hpp:79 ◆ getRank()
Retrieve/Set MPI rank (setting is useful for e.g. the postprocessor to re-print points from other ranks) Definition at line 98 of file basebaseprinter.hpp. References rank. Referenced by Gambit::Likelihood_Container::main().
Here is the caller graph for this function:
![]() ◆ print() [1/2]
template<typename T >
Definition at line 139 of file basebaseprinter.hpp. References _print(), printer_cooldown, and printer_enabled. Referenced by Gambit::Likelihood_Container::main(), Gambit::PostProcessor::PPDriver::run_main_loop(), scanner_plugin(), and Gambit::Scanner::TWalk(). bool printer_enabled Flag to check if print functions are enabled or disabled. Definition: basebaseprinter.hpp:162 void _print(T const &, const std::string &label, const int vertexID, const uint, const ulong) Default _print function. Definition: basebaseprinter.hpp:171 int printer_cooldown Counter for printer cooldown. If non-zero printer can be disabled for a fixed number of print calls... Definition: basebaseprinter.hpp:165
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]() ◆ print() [2/2]
template<typename T >
Definition at line 151 of file basebaseprinter.hpp. References _print(), printer_cooldown, and printer_enabled. bool printer_enabled Flag to check if print functions are enabled or disabled. Definition: basebaseprinter.hpp:162 void _print(T const &, const std::string &label, const int vertexID, const uint, const ulong) Default _print function. Definition: basebaseprinter.hpp:171 int printer_cooldown Counter for printer cooldown. If non-zero printer can be disabled for a fixed number of print calls... Definition: basebaseprinter.hpp:165
Here is the call graph for this function:
![]() ◆ reset()
Function to signal to the printer to write buffer contents to disk. Signal printer to reset contents, i.e. delete old data in preperation for replacement Referenced by Gambit::MultiNest::LogLikeWrapper::dumper(), Gambit::PolyChord::LogLikeWrapper::dumper(), scanner_plugin(), ~BaseBasePrinter(), and Gambit::Printers::BaseBaseReader::~BaseBaseReader().
Here is the caller graph for this function:
![]() ◆ resume_reader_options()
◆ set_printUnitcube()
Definition at line 103 of file basebaseprinter.hpp. bool printUnitcube Definition: basebaseprinter.hpp:81 ◆ set_resume()
Definition at line 116 of file basebaseprinter.hpp. References finalise().
Here is the call graph for this function:
![]() ◆ setPrintList()
Definition at line 108 of file basebaseprinter.hpp. std::set< std::string > print_list Definition: basebaseprinter.hpp:79 ◆ setRank()Member Data Documentation◆ print_list
Definition at line 79 of file basebaseprinter.hpp. Referenced by getPrintList(). ◆ printer_cooldown
Counter for printer cooldown. If non-zero printer can be disabled for a fixed number of print calls. Definition at line 165 of file basebaseprinter.hpp. ◆ printer_enabled
Flag to check if print functions are enabled or disabled. Definition at line 162 of file basebaseprinter.hpp. ◆ printUnitcube
Definition at line 81 of file basebaseprinter.hpp. Referenced by get_printUnitcube(). ◆ rank
Definition at line 78 of file basebaseprinter.hpp. Referenced by getRank(), and Gambit::Printers::BaseBaseReader::retrieve_and_print(). ◆ resume
Definition at line 80 of file basebaseprinter.hpp. Referenced by get_resume(). The documentation for this class was generated from the following file:
|