JayBeams
0.1
Another project to have fun coding.
|
Configure a micro-benchmark. More...
#include <microbenchmark_config.hpp>
Public Member Functions | |
microbenchmark_config () | |
Default constructor. More... | |
config_object_constructors (microbenchmark_config) | |
![]() | |
config_object () | |
Default constructor. More... | |
config_object (config_object const &rhs) | |
Copy constructor. More... | |
config_object (config_object &&rhs) | |
Move constructor. More... | |
virtual | ~config_object () |
Destructor. More... | |
config_object & | operator= (config_object rhs) |
Copy & swap assignment. More... | |
void | swap (config_object &rhs) |
Derived classes should implement member by member swap. More... | |
void | load_overrides (int &argc, char *argv[], std::string const &filename, char const *environment_variable_name) |
Read the configuration file and load the overrides defined therein. More... | |
void | load_overrides (int &argc, char *argv[], std::string const &filename) |
Read the configuration file and load the overrides defined therein. More... | |
void | load_overrides (int &argc, char *argv[], std::istream &is) |
Read the configuration file and load the overrides defined therein. More... | |
void | process_cmdline (int &argc, char *argv[]) |
Process the command line. More... | |
virtual void | validate () const |
Validate the settings. More... | |
std::ostream & | to_stream (std::ostream &os) const |
Print out the settings. More... | |
Public Attributes | |
jb::config_attribute< microbenchmark_config, int > | warmup_iterations |
jb::config_attribute< microbenchmark_config, int > | iterations |
jb::config_attribute< microbenchmark_config, int > | size |
jb::config_attribute< microbenchmark_config, bool > | verbose |
jb::config_attribute< microbenchmark_config, std::string > | test_case |
jb::config_attribute< microbenchmark_config, bool > | reconfigure_thread |
jb::config_attribute< microbenchmark_config, thread_config > | thread |
jb::config_attribute< microbenchmark_config, std::string > | prefix |
Additional Inherited Members | |
![]() | |
static attribute_descriptor | desc (std::string const &name) |
Convenience function to create attribute descriptors with less typing. More... | |
static attribute_descriptor | desc (std::string const &name, std::string const &class_name) |
Convenience function to create attribute descriptors with less typing. More... | |
Configure a micro-benchmark.
Definition at line 13 of file microbenchmark_config.hpp.
jb::testing::microbenchmark_config::microbenchmark_config | ( | ) |
Default constructor.
Initialize all values to the default settings.
Definition at line 57 of file microbenchmark_config.cpp.
jb::testing::microbenchmark_config::config_object_constructors | ( | microbenchmark_config | ) |
jb::config_attribute<microbenchmark_config, int> jb::testing::microbenchmark_config::iterations |
Definition at line 24 of file microbenchmark_config.hpp.
Referenced by BOOST_AUTO_TEST_CASE().
jb::config_attribute<microbenchmark_config, std::string> jb::testing::microbenchmark_config::prefix |
Definition at line 30 of file microbenchmark_config.hpp.
Referenced by jb::testing::microbenchmark_base::write_results().
jb::config_attribute<microbenchmark_config, bool> jb::testing::microbenchmark_config::reconfigure_thread |
Definition at line 28 of file microbenchmark_config.hpp.
jb::config_attribute<microbenchmark_config, int> jb::testing::microbenchmark_config::size |
Definition at line 25 of file microbenchmark_config.hpp.
Referenced by jb::testing::microbenchmark_base::typical_output().
jb::config_attribute<microbenchmark_config, std::string> jb::testing::microbenchmark_config::test_case |
Definition at line 27 of file microbenchmark_config.hpp.
Referenced by jb::testing::microbenchmark_group_main(), and jb::testing::microbenchmark_base::typical_output().
jb::config_attribute<microbenchmark_config, thread_config> jb::testing::microbenchmark_config::thread |
Definition at line 29 of file microbenchmark_config.hpp.
jb::config_attribute<microbenchmark_config, bool> jb::testing::microbenchmark_config::verbose |
Definition at line 26 of file microbenchmark_config.hpp.
Referenced by jb::testing::microbenchmark_group_main(), and jb::testing::microbenchmark_base::typical_output().
jb::config_attribute<microbenchmark_config, int> jb::testing::microbenchmark_config::warmup_iterations |
Definition at line 23 of file microbenchmark_config.hpp.
Referenced by BOOST_AUTO_TEST_CASE().