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

Launcher handler. More...

#include <launcher_handler.h>

Inheritance diagram for CppBenchmark::LauncherHandler:
CppBenchmark::Launcher CppBenchmark::LauncherConsole

Public Member Functions

 LauncherHandler ()=default
 
 LauncherHandler (const LauncherHandler &)=default
 
 LauncherHandler (LauncherHandler &&) noexcept=default
 
virtual ~LauncherHandler ()=default
 
LauncherHandleroperator= (const LauncherHandler &)=default
 
LauncherHandleroperator= (LauncherHandler &&) noexcept=default
 

Protected Member Functions

virtual void onLaunching (int current, int total, const BenchmarkBase &benchmark, const Context &context, int attempt)
 Handle benchmark launching notification. More...
 
virtual void onLaunched (int current, int total, const BenchmarkBase &benchmark, const Context &context, int attempt)
 Handle benchmark launched notification. More...
 

Friends

class Benchmark
 
class BenchmarkPC
 
class BenchmarkThreads
 

Detailed Description

Launcher handler.

Provides interface to handle progress notifications from benchmark launcher.

Definition at line 21 of file launcher_handler.h.

Constructor & Destructor Documentation

◆ LauncherHandler() [1/3]

CppBenchmark::LauncherHandler::LauncherHandler ( )
default

◆ LauncherHandler() [2/3]

CppBenchmark::LauncherHandler::LauncherHandler ( const LauncherHandler )
default

◆ LauncherHandler() [3/3]

CppBenchmark::LauncherHandler::LauncherHandler ( LauncherHandler &&  )
defaultnoexcept

◆ ~LauncherHandler()

virtual CppBenchmark::LauncherHandler::~LauncherHandler ( )
virtualdefault

Member Function Documentation

◆ onLaunched()

virtual void CppBenchmark::LauncherHandler::onLaunched ( int  current,
int  total,
const BenchmarkBase benchmark,
const Context context,
int  attempt 
)
inlineprotectedvirtual

Handle benchmark launched notification.

This method is called after launched the given benchmark.

Parameters
current- Current benchmark number
total- Total benchmarks
benchmark- Benchmark
context- Benchmark running context
attempt- Benchmark attempt

Reimplemented in CppBenchmark::LauncherConsole.

Definition at line 58 of file launcher_handler.h.

◆ onLaunching()

virtual void CppBenchmark::LauncherHandler::onLaunching ( int  current,
int  total,
const BenchmarkBase benchmark,
const Context context,
int  attempt 
)
inlineprotectedvirtual

Handle benchmark launching notification.

This method is called before launching the given benchmark.

Parameters
current- Current benchmark number
total- Total benchmarks
benchmark- Benchmark
context- Benchmark running context
attempt- Benchmark attempt

Reimplemented in CppBenchmark::LauncherConsole.

Definition at line 47 of file launcher_handler.h.

◆ operator=() [1/2]

LauncherHandler& CppBenchmark::LauncherHandler::operator= ( const LauncherHandler )
default

◆ operator=() [2/2]

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

Friends And Related Function Documentation

◆ Benchmark

friend class Benchmark
friend

Definition at line 23 of file launcher_handler.h.

◆ BenchmarkPC

friend class BenchmarkPC
friend

Definition at line 24 of file launcher_handler.h.

◆ BenchmarkThreads

friend class BenchmarkThreads
friend

Definition at line 25 of file launcher_handler.h.


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