ComPPare 1.0.0
Loading...
Searching...
No Matches
comppare::plugin::google_benchmark::state Class Reference

State class to manage the benchmark state. More...

#include <google_benchmark.hpp>

Public Member Functions

 state (const state &)=delete
 
stateoperator= (const state &)=delete
 
 state (state &&)=delete
 
stateoperator= (state &&)=delete
 

Static Public Member Functions

static stateinstance ()
 
static void set_state (benchmark::State &st)
 
static benchmark::State & get_state ()
 

Private Member Functions

 state ()=default
 

Private Attributes

benchmark::State * st_ = nullptr
 

Detailed Description

State class to manage the benchmark state.

This class is a singleton to ensure a single instance throughout the program. It provides methods to set and get the benchmark state benchmark::State &. The state is used to interact with the Google Benchmark library.

Constructor & Destructor Documentation

◆ state() [1/3]

comppare::plugin::google_benchmark::state::state ( const state )
delete

◆ state() [2/3]

comppare::plugin::google_benchmark::state::state ( state &&  )
delete

◆ state() [3/3]

comppare::plugin::google_benchmark::state::state ( )
privatedefault

Member Function Documentation

◆ get_state()

static benchmark::State & comppare::plugin::google_benchmark::state::get_state ( )
inlinestatic

◆ instance()

static state & comppare::plugin::google_benchmark::state::instance ( )
inlinestatic

◆ operator=() [1/2]

state & comppare::plugin::google_benchmark::state::operator= ( const state )
delete

◆ operator=() [2/2]

state & comppare::plugin::google_benchmark::state::operator= ( state &&  )
delete

◆ set_state()

static void comppare::plugin::google_benchmark::state::set_state ( benchmark::State &  st)
inlinestatic

Member Data Documentation

◆ st_

benchmark::State* comppare::plugin::google_benchmark::state::st_ = nullptr
private

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