HEBench
hebench::TestHarness::BenchmarkFactory Class Referencefinal

#include <hebench_benchmark_factory.h>

Static Public Member Functions

static IBenchmarkDescriptor::DescriptionToken::Ptr matchBenchmarkDescriptor (const Engine &engine, const BenchmarkDescription::Backend &backend_desc, const BenchmarkDescription::Configuration &config)
 Returns a token representing a benchmark that can perform the described workload with specified parameters, if any. More...
 
static bool registerSupportedBenchmark (std::shared_ptr< IBenchmarkDescriptor > p_desc_obj)
 Registers a benchmark description object that represents one of the supported workloads. More...
 

Friends

class Engine
 

Detailed Description

Definition at line 24 of file hebench_benchmark_factory.h.

Member Function Documentation

◆ matchBenchmarkDescriptor()

IBenchmarkDescriptor::DescriptionToken::Ptr hebench::TestHarness::BenchmarkFactory::matchBenchmarkDescriptor ( const Engine engine,
const BenchmarkDescription::Backend backend_desc,
const BenchmarkDescription::Configuration config 
)
static

Returns a token representing a benchmark that can perform the described workload with specified parameters, if any.

Parameters
[in]engineEngine requesting the matching.
[in]backend_descBackend descriptor to match.
[in]configConfiguration of benchmark to match.
Returns
A valid token representing the matched benchmark.
null if no match was found.

Definition at line 76 of file hebench_benchmark_factory.cpp.

◆ registerSupportedBenchmark()

bool hebench::TestHarness::BenchmarkFactory::registerSupportedBenchmark ( std::shared_ptr< IBenchmarkDescriptor p_desc_obj)
static

Registers a benchmark description object that represents one of the supported workloads.

Parameters
[in]p_desc_objSmart pointer to benchmark description object to register.
Returns
true if registration is successful.
false otherwise.

This method should be called for each benchmark during static initialization to register the benchmark description before the application main entry-point is reached.

This method does not throw exceptions.

Definition at line 90 of file hebench_benchmark_factory.cpp.

Friends And Related Function Documentation

◆ Engine

friend class Engine
friend

Definition at line 32 of file hebench_benchmark_factory.h.


The documentation for this class was generated from the following files: