ComPPare 1.0.0
|
Singleton class for the current state. More...
#include <config.hpp>
Public Member Functions | |
current_state (const current_state &)=delete | |
Deleted copy constructor. | |
current_state (current_state &&)=delete | |
Deleted move constructor. | |
current_state & | operator= (const current_state &)=delete |
Deleted copy assignment operator. | |
current_state & | operator= (current_state &&)=delete |
Deleted move assignment operator. | |
Static Public Member Functions | |
static bool | using_plugin () |
Get if a plugin is being used currently. | |
static void | set_using_plugin (bool v) |
Set if a plugin is being used currently. | |
static std::string_view | impl_name () |
Get the name of the current implementation. | |
static void | set_impl_name (std::string_view name) |
Set the name of the current implementation. | |
Private Member Functions | |
current_state ()=default | |
Private Default kconstructor. | |
Static Private Member Functions | |
static current_state & | instance () |
Get the singleton instance of the current_state class. | |
Private Attributes | |
bool | using_plugin_ {false} |
The current state of plugin usage. | |
std::string_view | impl_name_ |
The name of the current implementation. | |
Singleton class for the current state.
This singleton class holds the current state of the benchmarking process. It tracks whether a plugin is being used and the name of the current implementation.
|
delete |
Deleted copy constructor.
|
delete |
Deleted move constructor.
|
privatedefault |
Private Default kconstructor.
|
inlinestatic |
Get the name of the current implementation.
|
inlinestaticprivate |
Get the singleton instance of the current_state class.
|
delete |
Deleted copy assignment operator.
|
delete |
Deleted move assignment operator.
|
inlinestatic |
Set the name of the current implementation.
|
inlinestatic |
Set if a plugin is being used currently.
|
inlinestatic |
Get if a plugin is being used currently.
|
private |
The name of the current implementation.
|
private |
The current state of plugin usage.