CppBenchmark
1.0.4.0
C++ Benchmark Library
include
benchmark
fixture_pc.h
Go to the documentation of this file.
1
9
#ifndef CPPBENCHMARK_FIXTURE_PC_H
10
#define CPPBENCHMARK_FIXTURE_PC_H
11
12
#include "
benchmark/context_pc.h
"
13
14
namespace
CppBenchmark
{
15
17
20
class
FixturePC
21
{
22
public
:
23
FixturePC
() noexcept = default;
24
FixturePC
(const
FixturePC
&) noexcept = default;
25
FixturePC
(
FixturePC
&&) noexcept = default;
26
virtual ~
FixturePC
() noexcept = default;
27
28
FixturePC
& operator=(const
FixturePC
&) noexcept = default;
29
FixturePC
& operator=(
FixturePC
&&) noexcept = default;
30
31
protected:
33
38
virtual
void
Initialize
(
ContextPC
& context) {}
40
45
virtual
void
Cleanup
(
ContextPC
& context) {}
46
48
53
virtual
void
InitializeProducer
(
ContextPC
& context) {}
55
60
virtual
void
InitializeConsumer
(
ContextPC
& context) {}
62
67
virtual
void
CleanupProducer
(
ContextPC
& context) {}
69
74
virtual
void
CleanupConsumer
(
ContextPC
& context) {}
75
};
76
77
}
// namespace CppBenchmark
78
79
#endif
// CPPBENCHMARK_FIXTURE_PC_H
CppBenchmark::ContextPC
Benchmark producer/consumer running context.
Definition:
context_pc.h:27
CppBenchmark::FixturePC
Producers/Consumers benchmark fixture.
Definition:
fixture_pc.h:21
CppBenchmark::FixturePC::Initialize
virtual void Initialize(ContextPC &context)
Initialize benchmark.
Definition:
fixture_pc.h:38
CppBenchmark::FixturePC::Cleanup
virtual void Cleanup(ContextPC &context)
Cleanup benchmark.
Definition:
fixture_pc.h:45
CppBenchmark::FixturePC::CleanupProducer
virtual void CleanupProducer(ContextPC &context)
Cleanup producer.
Definition:
fixture_pc.h:67
CppBenchmark::FixturePC::FixturePC
FixturePC() noexcept=default
CppBenchmark::FixturePC::InitializeProducer
virtual void InitializeProducer(ContextPC &context)
Initialize producer.
Definition:
fixture_pc.h:53
CppBenchmark::FixturePC::InitializeConsumer
virtual void InitializeConsumer(ContextPC &context)
Initialize consumer.
Definition:
fixture_pc.h:60
CppBenchmark::FixturePC::CleanupConsumer
virtual void CleanupConsumer(ContextPC &context)
Cleanup consumer.
Definition:
fixture_pc.h:74
context_pc.h
Benchmark producer/consumer running context definition.
CppBenchmark
C++ Benchmark project definitions.
Definition:
barrier.h:15
Generated by
1.9.1