CppBenchmark  1.0.4.0
C++ Benchmark Library
Public Member Functions | Protected Member Functions | List of all members
CppBenchmark::FixtureThreads Class Reference

Threads benchmark fixture. More...

#include <fixture_threads.h>

Inheritance diagram for CppBenchmark::FixtureThreads:
CppBenchmark::BenchmarkThreads

Public Member Functions

 FixtureThreads () noexcept=default
 
 FixtureThreads (const FixtureThreads &) noexcept=default
 
 FixtureThreads (FixtureThreads &&) noexcept=default
 
virtual ~FixtureThreads () noexcept=default
 
FixtureThreadsoperator= (const FixtureThreads &) noexcept=default
 
FixtureThreadsoperator= (FixtureThreads &&) noexcept=default
 

Protected Member Functions

virtual void Initialize (ContextThreads &context)
 Initialize benchmark. More...
 
virtual void Cleanup (ContextThreads &context)
 Cleanup benchmark. More...
 
virtual void InitializeThread (ContextThreads &context)
 Initialize thread. More...
 
virtual void CleanupThread (ContextThreads &context)
 Cleanup thread. More...
 

Detailed Description

Threads benchmark fixture.

Provides interface to initialize and cleanup threads benchmarks.

Definition at line 20 of file fixture_threads.h.

Constructor & Destructor Documentation

◆ FixtureThreads() [1/3]

CppBenchmark::FixtureThreads::FixtureThreads ( )
defaultnoexcept

◆ FixtureThreads() [2/3]

CppBenchmark::FixtureThreads::FixtureThreads ( const FixtureThreads )
defaultnoexcept

◆ FixtureThreads() [3/3]

CppBenchmark::FixtureThreads::FixtureThreads ( FixtureThreads &&  )
defaultnoexcept

◆ ~FixtureThreads()

virtual CppBenchmark::FixtureThreads::~FixtureThreads ( )
virtualdefaultnoexcept

Member Function Documentation

◆ Cleanup()

virtual void CppBenchmark::FixtureThreads::Cleanup ( ContextThreads context)
inlineprotectedvirtual

Cleanup benchmark.

This method is called after benchmark run method.

Parameters
context- Benchmark running context

Definition at line 45 of file fixture_threads.h.

◆ CleanupThread()

virtual void CppBenchmark::FixtureThreads::CleanupThread ( ContextThreads context)
inlineprotectedvirtual

Cleanup thread.

This method is called to cleanup benchmark thread.

Parameters
context- Thread running context

Definition at line 60 of file fixture_threads.h.

◆ Initialize()

virtual void CppBenchmark::FixtureThreads::Initialize ( ContextThreads context)
inlineprotectedvirtual

Initialize benchmark.

This method is called before benchmark run method.

Parameters
context- Benchmark running context

Definition at line 38 of file fixture_threads.h.

◆ InitializeThread()

virtual void CppBenchmark::FixtureThreads::InitializeThread ( ContextThreads context)
inlineprotectedvirtual

Initialize thread.

This method is called to initialize benchmark thread.

Parameters
context- Thread running context

Definition at line 53 of file fixture_threads.h.

◆ operator=() [1/2]

FixtureThreads& CppBenchmark::FixtureThreads::operator= ( const FixtureThreads )
defaultnoexcept

◆ operator=() [2/2]

FixtureThreads& CppBenchmark::FixtureThreads::operator= ( FixtureThreads &&  )
defaultnoexcept

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