LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
TestResultAgg Struct Reference

Public Member Functions

 TestResultAgg (bool display_agg_only)
 
void record_test_result (TestResult tr)
 
std::vector< std::string > test_names () const
 
std::vector< TestResultget_test_results_by_name (const std::string &test_name)
 
TestResult aggregate (const std::vector< TestResult > test_results)
 
void display ()
 

Private Attributes

std::vector< TestResultresults
 
std::mutex lock
 
bool display_agg_only_
 

Detailed Description

Helper class to collect and display benchmark test results.

Constructor & Destructor Documentation

◆ TestResultAgg()

TestResultAgg::TestResultAgg ( bool  display_agg_only)
inlineexplicit

Member Function Documentation

◆ aggregate()

TestResult TestResultAgg::aggregate ( const std::vector< TestResult test_results)
inline

◆ display()

void TestResultAgg::display ( )
inline

◆ get_test_results_by_name()

std::vector< TestResult > TestResultAgg::get_test_results_by_name ( const std::string &  test_name)
inline

◆ record_test_result()

void TestResultAgg::record_test_result ( TestResult  tr)
inline

◆ test_names()

std::vector< std::string > TestResultAgg::test_names ( ) const
inline

Member Data Documentation

◆ display_agg_only_

bool TestResultAgg::display_agg_only_
private

◆ lock

std::mutex TestResultAgg::lock
private

◆ results

std::vector<TestResult> TestResultAgg::results
private

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