matf-rg-engine 1.0.0
Base for project for the Computer Graphics course at Faculty of Mathematics, University of Belgrade
|
Namespaces | |
namespace | alg |
Contains algorithm. | |
namespace | ds |
Classes | |
class | ArgParser |
Parses command line arguments. More... | |
class | Configuration |
Loads and stores the configuration file. More... | |
class | EngineError |
Represents an error that occurred in the engine. More... | |
class | Error |
Base class for all errors. More... | |
class | UserError |
Represents an error that occurred in the user's code. More... | |
Functions | |
void | tracing_on () |
Turns on tracing. | |
void | tracing_off () |
Turns off tracing. | |
void | trace (std::source_location location=std::source_location::current()) |
Traces a function call. | |
std::string | read_text_file (const std::filesystem::path &path) |
Reads a text file. | |
template<typename Action > | |
void | once (Action action) |
Calls an action once. | |
Variables | |
static bool | g_tracing = true |
void engine::util::tracing_on | ( | ) |
Turns on tracing.
void engine::util::tracing_off | ( | ) |
Turns off tracing.
void engine::util::trace | ( | std::source_location | location = std::source_location::current() | ) |
Traces a function call.
location | The location of the trace. Defaults to the call site location. void foo() {
trace();
}
void trace(std::source_location location=std::source_location::current()) Traces a function call. Definition Utils.cpp:20 |
std::string engine::util::read_text_file | ( | const std::filesystem::path & | path | ) |
Reads a text file.
path | The path to the file. |
void engine::util::once | ( | Action | action | ) |
Calls an action once.
action | The action to call. Prints: "foo" once when the control flow reaches the function for the first time. If the function foo is called again, the action is not called again. |
|
static |