basebaseprinter.hpp
Go to the documentation of this file.
70 err << "getTypeID failed! No typeID known for requested type! (with compiler name: "<<typeid(T).name()<<")"; 79 std::set<std::string> print_list; // List of names of data that may be printed (i.e. with printme=true) 283 virtual ulong get_dataset_length() = 0; // Get length of input dataset (used e.g. by postprocessor to divide post-processing workload via MPI) 284 virtual PPIDpair get_current_point() = 0; // Get current rank/ptID pair (i.e. whatever get_next_point() last output) 285 virtual ulong get_current_index() = 0; // Get a linear index which corresponds to the current rank/ptID pair in the iterative sense 287 virtual bool eoi() = 0; // Check if 'current point' is past the end of the data file (and thus invalid!) 331 bool retrieve_and_print(const std::string& label, BaseBasePrinter& printer, const uint rank, const ulong pointID) 339 virtual bool retrieve_and_print(const std::string& in_label, const std::string& out_label, BaseBasePrinter& printer, const uint rank, const ulong pointID) = 0; 349 bool retrieve_and_print(const std::string& in_label, const std::string& out_label, BaseBasePrinter& printer)
void print(T const &in, const std::string &label, const int vertexID, const uint rank, const ulong pointID) Definition: basebaseprinter.hpp:139 virtual ~BaseBasePrinter() Definition: basebaseprinter.hpp:85 bool _retrieve(T &, const std::string &label, const uint, const ulong) Default _retrieve function. Definition: basebaseprinter.hpp:381 unsigned long long int pointID Definition: new_mpi_datatypes.hpp:92 bool retrieve_and_print(const std::string &label, BaseBasePrinter &printer) Overload for 'retrieve_and_print' that uses the current point as the input for rank/pointID. Definition: basebaseprinter.hpp:342 void setPrintList(const std::set< std::string > &in) Definition: basebaseprinter.hpp:108 bool retrieve(T &out, const std::string &label) Overload for 'retrieve' that uses the current point as the input for rank/pointID. Definition: basebaseprinter.hpp:314 void set_resume(bool rflag) Definition: basebaseprinter.hpp:116 Definitions of new MPI datatypes needed by printers. bool printer_enabled Flag to check if print functions are enabled or disabled. Definition: basebaseprinter.hpp:162 virtual Options resume_reader_options()=0 Definition: log_tags.hpp:38 std::set< std::string > getPrintList() Retrieve/Set print list for this printer Required by e.g. Definition: basebaseprinter.hpp:107 bool printUnitcube Definition: basebaseprinter.hpp:81 void enable() "Turn on" printer; print calls will work as normal. Definition: basebaseprinter.hpp:132 void _print(T const &in, const std::string &label, const uint rank, const ulong pointID) Same for overloaded function. Definition: basebaseprinter.hpp:193 void print(T const &in, const std::string &label, const uint rank, const ulong pointID) Definition: basebaseprinter.hpp:151 int getRank() Retrieve/Set MPI rank (setting is useful for e.g. the postprocessor to re-print points from other ran... Definition: basebaseprinter.hpp:98 virtual ~BaseBaseReader() Definition: basebaseprinter.hpp:280 virtual void reset(bool force=false)=0 Function to signal to the printer to write buffer contents to disk. void addToPrintList(const std::string &in) Definition: basebaseprinter.hpp:109 bool retrieve(T &out, const std::string &label, const uint rank, const ulong pointID) Printer-retrieve dispatch function. Definition: basebaseprinter.hpp:307 Tools for accessing printers. BaseBasePrinter() Definition: basebaseprinter.hpp:84 Exception objects required for standalone compilation. void _print(T const &, const std::string &label, const int vertexID, const uint, const ulong) Default _print function. Definition: basebaseprinter.hpp:171 Definition: model_parameters.hpp:53 Preprocessor sequence of functor types that should be allowed to print when using ScannerBit in stand... std::map< std::string, double > map_str_dbl Shorthand for a string-to-double map. Definition: basebaseprinter.hpp:52 void set_printUnitcube(const bool &rflag) Definition: basebaseprinter.hpp:103 EXPORT_SYMBOLS const PPIDpair nullpoint Define 'nullpoint' const. Definition: new_mpi_datatypes.cpp:185 std::set< std::string > print_list Definition: basebaseprinter.hpp:79 std::size_t getTypeID(void) Helper template functions to retrieve type IDs for a type. Definition: basebaseprinter.hpp:67 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 bool retrieve_and_print(const std::string &label, BaseBasePrinter &printer, const uint rank, const ulong pointID) Retrieve and directly print data to new output. Definition: basebaseprinter.hpp:331 virtual void flush()=0 Signal printer to flush data in buffers to disk Printers should do this automatically as needed... pointID / process number pair Used to identify a single parameter space point Definition: new_mpi_datatypes.hpp:90 virtual void finalise(bool abnormal=false)=0 Signal printer that scan is finished, and final output needs to be performed. bool retrieve_and_print(const std::string &in_label, const std::string &out_label, BaseBasePrinter &printer) As above, but allows for different input/output labels. Definition: basebaseprinter.hpp:349 bool & get_printUnitcube() Definition: basebaseprinter.hpp:102 |