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

Benchmark fixture. More...

#include <fixture.h>

Inheritance diagram for CppBenchmark::Fixture:
CppBenchmark::Benchmark

Public Member Functions

 Fixture () noexcept=default
 
 Fixture (const Fixture &) noexcept=default
 
 Fixture (Fixture &&) noexcept=default
 
virtual ~Fixture () noexcept=default
 
Fixtureoperator= (const Fixture &) noexcept=default
 
Fixtureoperator= (Fixture &&) noexcept=default
 

Protected Member Functions

virtual void Initialize (Context &context)
 Initialize benchmark. More...
 
virtual void Cleanup (Context &context)
 Cleanup benchmark. More...
 

Detailed Description

Benchmark fixture.

Provides interface to initialize and cleanup benchmarks.

Examples
containers.cpp, and sort.cpp.

Definition at line 20 of file fixture.h.

Constructor & Destructor Documentation

◆ Fixture() [1/3]

CppBenchmark::Fixture::Fixture ( )
defaultnoexcept

◆ Fixture() [2/3]

CppBenchmark::Fixture::Fixture ( const Fixture )
defaultnoexcept

◆ Fixture() [3/3]

CppBenchmark::Fixture::Fixture ( Fixture &&  )
defaultnoexcept

◆ ~Fixture()

virtual CppBenchmark::Fixture::~Fixture ( )
virtualdefaultnoexcept

Member Function Documentation

◆ Cleanup()

virtual void CppBenchmark::Fixture::Cleanup ( Context context)
inlineprotectedvirtual

Cleanup benchmark.

This method is called after benchmark run method.

Parameters
context- Benchmark running context
Examples
containers.cpp, and sort.cpp.

Definition at line 45 of file fixture.h.

◆ Initialize()

virtual void CppBenchmark::Fixture::Initialize ( Context context)
inlineprotectedvirtual

Initialize benchmark.

This method is called before benchmark run method.

Parameters
context- Benchmark running context
Examples
containers.cpp, and sort.cpp.

Definition at line 38 of file fixture.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

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