Qt 4.8
Public Functions | Public Variables | List of all members
QBenchmarkResult Class Reference

#include <qbenchmark_p.h>

Public Functions

bool operator< (const QBenchmarkResult &other) const
 
 QBenchmarkResult ()
 
 QBenchmarkResult (const QBenchmarkContext &context, const qreal value, const int iterations, QTest::QBenchmarkMetric metric, bool setByMacro)
 

Public Variables

QBenchmarkContext context
 
int iterations
 
QTest::QBenchmarkMetric metric
 
bool setByMacro
 
bool valid
 
qreal value
 

Detailed Description

Definition at line 94 of file qbenchmark_p.h.

Constructors and Destructors

◆ QBenchmarkResult() [1/2]

QBenchmarkResult::QBenchmarkResult ( )
inline

Definition at line 104 of file qbenchmark_p.h.

105  : value(-1)
106  , iterations(-1)
107  , setByMacro(true)
108  , valid(false)
109  { }

◆ QBenchmarkResult() [2/2]

QBenchmarkResult::QBenchmarkResult ( const QBenchmarkContext context,
const qreal  value,
const int  iterations,
QTest::QBenchmarkMetric  metric,
bool  setByMacro 
)
inline

Definition at line 111 of file qbenchmark_p.h.

114  : context(context)
115  , value(value)
117  , metric(metric)
119  , valid(true)
120  { }
QTest::QBenchmarkMetric metric
Definition: qbenchmark_p.h:100
QBenchmarkContext context
Definition: qbenchmark_p.h:97

Functions

◆ operator<()

bool QBenchmarkResult::operator< ( const QBenchmarkResult other) const
inline

Definition at line 122 of file qbenchmark_p.h.

123  {
124  return (value / iterations) < (other.value / other.iterations);
125  }

Properties

◆ context

QBenchmarkContext QBenchmarkResult::context

◆ iterations

int QBenchmarkResult::iterations

◆ metric

QTest::QBenchmarkMetric QBenchmarkResult::metric

◆ setByMacro

bool QBenchmarkResult::setByMacro

Definition at line 101 of file qbenchmark_p.h.

Referenced by QTest::printBenchmarkResult().

◆ valid

bool QBenchmarkResult::valid

Definition at line 102 of file qbenchmark_p.h.

◆ value

qreal QBenchmarkResult::value

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