Classes | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
benchmark::BenchmarkReporter Class Referenceabstract

#include <benchmark.h>

Inheritance diagram for benchmark::BenchmarkReporter:
Inheritance graph
[legend]

Classes

struct  Context
 
struct  Run
 

Public Member Functions

 BenchmarkReporter ()
 
virtual void Finalize ()
 
std::ostream & GetErrorStream () const
 
std::ostream & GetOutputStream () const
 
virtual bool ReportContext (const Context &context)=0
 
virtual void ReportRuns (const std::vector< Run > &report)=0
 
void SetErrorStream (std::ostream *err)
 
void SetOutputStream (std::ostream *out)
 
virtual ~BenchmarkReporter ()
 

Static Public Member Functions

static void PrintBasicContext (std::ostream *out, Context const &context)
 

Private Attributes

std::ostream * error_stream_
 
std::ostream * output_stream_
 

Detailed Description

Definition at line 1006 of file benchmark.h.

Constructor & Destructor Documentation

◆ BenchmarkReporter()

benchmark::BenchmarkReporter::BenchmarkReporter ( )

Definition at line 29 of file reporter.cc.

◆ ~BenchmarkReporter()

benchmark::BenchmarkReporter::~BenchmarkReporter ( )
virtual

Definition at line 32 of file reporter.cc.

Member Function Documentation

◆ Finalize()

virtual void benchmark::BenchmarkReporter::Finalize ( )
inlinevirtual

Reimplemented in benchmark::JSONReporter.

Definition at line 1098 of file benchmark.h.

◆ GetErrorStream()

std::ostream& benchmark::BenchmarkReporter::GetErrorStream ( ) const
inline

Definition at line 1116 of file benchmark.h.

◆ GetOutputStream()

std::ostream& benchmark::BenchmarkReporter::GetOutputStream ( ) const
inline

Definition at line 1114 of file benchmark.h.

◆ PrintBasicContext()

void benchmark::BenchmarkReporter::PrintBasicContext ( std::ostream *  out,
Context const &  context 
)
static

Definition at line 34 of file reporter.cc.

◆ ReportContext()

virtual bool benchmark::BenchmarkReporter::ReportContext ( const Context context)
pure virtual

◆ ReportRuns()

virtual void benchmark::BenchmarkReporter::ReportRuns ( const std::vector< Run > &  report)
pure virtual

◆ SetErrorStream()

void benchmark::BenchmarkReporter::SetErrorStream ( std::ostream *  err)
inline

Definition at line 1109 of file benchmark.h.

◆ SetOutputStream()

void benchmark::BenchmarkReporter::SetOutputStream ( std::ostream *  out)
inline

Definition at line 1102 of file benchmark.h.

Member Data Documentation

◆ error_stream_

std::ostream* benchmark::BenchmarkReporter::error_stream_
private

Definition at line 1127 of file benchmark.h.

◆ output_stream_

std::ostream* benchmark::BenchmarkReporter::output_stream_
private

Definition at line 1126 of file benchmark.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:06