Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Static Protected Member Functions | List of all members
perf::TestBaseWithParam< T > Class Template Referenceabstract

#include <ts_perf.hpp>

Inherits perf::TestBase, and testing::WithParamInterface< T >.

Public Types

typedef internal::SetUpTestCaseFunc SetUpTestCaseFunc
 
typedef
internal::TearDownTestCaseFunc 
TearDownTestCaseFunc
 
typedef T ParamType
 

Public Member Functions

void setVerified ()
 
const ParamTypeGetParam () const
 

Static Public Member Functions

static void Init (int argc, const char *const argv[])
 
static void Init (const std::vector< std::string > &availableImpls, int argc, const char *const argv[])
 
static void RecordRunParameters ()
 
static std::string getDataPath (const std::string &relativePath)
 
static std::string getSelectedImpl ()
 
static enum PERF_STRATEGY getPerformanceStrategy ()
 
static enum PERF_STRATEGY setPerformanceStrategy (enum PERF_STRATEGY strategy)
 
static void SetUpTestCase ()
 
static void TearDownTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Public Attributes

_declareHelper declare
 

Protected Types

enum  { WARMUP_READ, WARMUP_WRITE, WARMUP_RNG, WARMUP_NONE }
 

Protected Member Functions

virtual void PerfTestBody ()=0
 
virtual void SetUp ()
 
virtual void TearDown ()
 
void startTimer ()
 
void stopTimer ()
 
bool next ()
 
void reportMetrics (bool toJUnitXML=false)
 
performance_metricscalcMetrics ()
 
void RunPerfTestBody ()
 

Static Protected Member Functions

static void warmup (cv::InputOutputArray a, int wtype=WARMUP_READ)
 

Member Typedef Documentation

typedef internal::SetUpTestCaseFunc testing::Test::SetUpTestCaseFunc
inherited
typedef internal::TearDownTestCaseFunc testing::Test::TearDownTestCaseFunc
inherited
template<typename T>
typedef T testing::WithParamInterface< T >::ParamType
inherited

Member Enumeration Documentation

anonymous enum
protectedinherited
Enumerator
WARMUP_READ 
WARMUP_WRITE 
WARMUP_RNG 
WARMUP_NONE 

Member Function Documentation

static void perf::TestBase::Init ( int  argc,
const char *const  argv[] 
)
staticinherited
static void perf::TestBase::Init ( const std::vector< std::string > &  availableImpls,
int  argc,
const char *const  argv[] 
)
staticinherited
static void perf::TestBase::RecordRunParameters ( )
staticinherited
static std::string perf::TestBase::getDataPath ( const std::string relativePath)
staticinherited
static std::string perf::TestBase::getSelectedImpl ( )
staticinherited
static enum PERF_STRATEGY perf::TestBase::getPerformanceStrategy ( )
staticinherited
static enum PERF_STRATEGY perf::TestBase::setPerformanceStrategy ( enum PERF_STRATEGY  strategy)
staticinherited
virtual void perf::TestBase::PerfTestBody ( )
protectedpure virtualinherited
virtual void perf::TestBase::SetUp ( )
protectedvirtualinherited

Reimplemented from testing::Test.

virtual void perf::TestBase::TearDown ( )
protectedvirtualinherited

Reimplemented from testing::Test.

void perf::TestBase::startTimer ( )
protectedinherited
void perf::TestBase::stopTimer ( )
protectedinherited
bool perf::TestBase::next ( )
protectedinherited
void perf::TestBase::reportMetrics ( bool  toJUnitXML = false)
protectedinherited
static void perf::TestBase::warmup ( cv::InputOutputArray  a,
int  wtype = WARMUP_READ 
)
staticprotectedinherited
performance_metrics& perf::TestBase::calcMetrics ( )
protectedinherited
void perf::TestBase::RunPerfTestBody ( )
protectedinherited
void perf::TestBase::setVerified ( )
inherited
static void testing::Test::SetUpTestCase ( )
staticinherited
static void testing::Test::TearDownTestCase ( )
staticinherited
static bool testing::Test::HasFatalFailure ( )
staticinherited
static bool testing::Test::HasNonfatalFailure ( )
staticinherited
static bool testing::Test::HasFailure ( )
staticinherited
static void testing::Test::RecordProperty ( const std::string key,
const std::string value 
)
staticinherited
static void testing::Test::RecordProperty ( const std::string key,
int  value 
)
staticinherited
template<typename T>
const ParamType& testing::WithParamInterface< T >::GetParam ( ) const
inherited

Member Data Documentation

_declareHelper perf::TestBase::declare
inherited

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