Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
benchmark::ConsoleReporter Class Reference

#include <benchmark.h>

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

Public Types

enum  OutputOptions {
  OO_None = 0, OO_Color = 1, OO_Tabular = 2, OO_ColorTabular = OO_Color|OO_Tabular,
  OO_Defaults = OO_ColorTabular
}
 

Public Member Functions

 ConsoleReporter (OutputOptions opts_=OO_Defaults)
 
virtual bool ReportContext (const Context &context)
 
virtual void ReportRuns (const std::vector< Run > &reports)
 
- Public Member Functions inherited from benchmark::BenchmarkReporter
 BenchmarkReporter ()
 
virtual void Finalize ()
 
std::ostream & GetErrorStream () const
 
std::ostream & GetOutputStream () const
 
void SetErrorStream (std::ostream *err)
 
void SetOutputStream (std::ostream *out)
 
virtual ~BenchmarkReporter ()
 

Protected Member Functions

virtual void PrintHeader (const Run &report)
 
virtual void PrintRunData (const Run &report)
 

Protected Attributes

size_t name_field_width_
 
OutputOptions output_options_
 
UserCounters prev_counters_
 
bool printed_header_
 

Additional Inherited Members

- Static Public Member Functions inherited from benchmark::BenchmarkReporter
static void PrintBasicContext (std::ostream *out, Context const &context)
 

Detailed Description

Definition at line 1132 of file benchmark.h.

Member Enumeration Documentation

◆ OutputOptions

Enumerator
OO_None 
OO_Color 
OO_Tabular 
OO_ColorTabular 
OO_Defaults 

Definition at line 1134 of file benchmark.h.

Constructor & Destructor Documentation

◆ ConsoleReporter()

benchmark::ConsoleReporter::ConsoleReporter ( OutputOptions  opts_ = OO_Defaults)
inlineexplicit

Definition at line 1141 of file benchmark.h.

Member Function Documentation

◆ PrintHeader()

void benchmark::ConsoleReporter::PrintHeader ( const Run report)
protectedvirtual

Definition at line 55 of file console_reporter.cc.

◆ PrintRunData()

void benchmark::ConsoleReporter::PrintRunData ( const Run report)
protectedvirtual

Definition at line 101 of file console_reporter.cc.

◆ ReportContext()

bool benchmark::ConsoleReporter::ReportContext ( const Context context)
virtual

Implements benchmark::BenchmarkReporter.

Definition at line 36 of file console_reporter.cc.

◆ ReportRuns()

void benchmark::ConsoleReporter::ReportRuns ( const std::vector< Run > &  reports)
virtual

Implements benchmark::BenchmarkReporter.

Definition at line 72 of file console_reporter.cc.

Member Data Documentation

◆ name_field_width_

size_t benchmark::ConsoleReporter::name_field_width_
protected

Definition at line 1153 of file benchmark.h.

◆ output_options_

OutputOptions benchmark::ConsoleReporter::output_options_
protected

Definition at line 1152 of file benchmark.h.

◆ prev_counters_

UserCounters benchmark::ConsoleReporter::prev_counters_
protected

Definition at line 1154 of file benchmark.h.

◆ printed_header_

bool benchmark::ConsoleReporter::printed_header_
protected

Definition at line 1155 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