|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Implementations of symbols declared in Defines.hpp: log stream management, signal handler body, OpenMP helpers, version string accessor, terminal / progress utilities. More...
Go to the source code of this file.
Namespaces | |
| namespace | DNDS |
| the host side operators are provided as implemented | |
Functions | |
| void | DNDS_signal_handler (int signal) |
| bool | DNDS::ostreamIsTTY (std::ostream &ostream) |
Heuristic detection of whether ostream is attached to a terminal. | |
| std::ostream & | DNDS::log () |
Return the current DNDSR log stream (either std::cout or the installed file). | |
| bool | DNDS::logIsTTY () |
| Convenience: ostreamIsTTY applied to the current log() stream. | |
| void | DNDS::setLogStream (ssp< std::ostream > nstream) |
Redirect log() output to a user-supplied stream. Ownership is shared. | |
| void | DNDS::setLogStreamCout () |
Restore the default std::cout routing for log(). | |
| int | DNDS::get_terminal_width () |
| Terminal width in columns (falls back to a fixed default when not a TTY). | |
| void | DNDS::print_progress (std::ostream &os, double progress) |
Render a textual progress bar to os for progress in [0, 1]. | |
| std::string | DNDS::getStringForceWString (const std::wstring &v) |
Convert a wstring to string (UTF-8 on Windows, byte-cast elsewhere). | |
| int | DNDS::get_env_OMP_NUM_THREADS () |
Read OMP_NUM_THREADS env var, returning 1 if unset / invalid. | |
| int | DNDS::get_env_DNDS_DIST_OMP_NUM_THREADS () |
| Read the DNDSR-specific DNDS_DIST_OMP_NUM_THREADS override, falling back to get_env_OMP_NUM_THREADS. | |
| std::string | DNDS::GetSetVersionName (const std::string &ver="") |
| Read/set the build version string accessible from code. | |
Variables | |
| ssp< std::ostream > | DNDS::logStream |
Shared output stream: where DNDS::log() writes progress / diagnostics. | |
| bool | DNDS::useCout = true |
Whether DNDS::log() is currently routed to std::cout. | |
Implementations of symbols declared in Defines.hpp: log stream management, signal handler body, OpenMP helpers, version string accessor, terminal / progress utilities.
Definition in file Defines.cpp.
| void DNDS_signal_handler | ( | int | signal | ) |
Definition at line 26 of file Defines.cpp.