Celero
Classes | Public Member Functions | List of all members
celero::Benchmark Class Reference

#include <Benchmark.h>

Classes

class  Impl
 

Public Member Functions

 Benchmark ()
 Default constructor.
 
 Benchmark (const std::string &name)
 Overloaded constructor. More...
 
 Benchmark (const Benchmark &other)
 
 ~Benchmark ()
 Default destructor.
 
Benchmarkoperator= (const Benchmark &other)
 Assignment Operator.
 
std::string getName () const
 The name to group all experiment under.
 
void setBaseline (std::shared_ptr< Experiment > x)
 
std::shared_ptr< ExperimentgetBaseline () const
 Gets the baseline case associated this benchmark.
 
void addExperiment (std::shared_ptr< Experiment > x)
 
std::shared_ptr< ExperimentgetExperiment (size_t experimentIndex)
 Gets the test case associated with the given experiment index.
 
std::shared_ptr< ExperimentgetExperiment (const std::string &experimentName)
 Gets the test case associated with the given experiment name.
 
size_t getExperimentSize () const
 Returns the total number of experiments per benchmark.
 

Detailed Description

Author
John Farrier

Constructor & Destructor Documentation

◆ Benchmark()

Benchmark::Benchmark ( const std::string &  name)
explicit

Overloaded constructor.

Parameters
nameName of the test group.

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