HEBench
hebench::ReportGen::TimingReportImpl Class Reference

#include <hebench_report_impl.h>

Public Member Functions

 TimingReportImpl ()
 
void newEventType (std::uint32_t set_id, const std::string &set_header, bool is_main_event=false)
 
const std::unordered_map< std::uint32_t, std::string > & getEventTypes () const
 
const std::vector< std::uint32_t > & getEventTypeIDs () const
 
std::uint32_t getMainEventID () const
 
void newEvent (std::shared_ptr< TimingReportEventC > p_event, const std::string &set_header=std::string())
 
const std::vector< std::shared_ptr< TimingReportEventC > > & getEvents () const
 
void reserveCapacityForEvents (std::size_t new_capacity)
 
void clear ()
 
const std::string & getHeader () const
 
void setHeader (const std::string &header)
 
void appendHeader (const std::string &header, bool new_line)
 
void prependHeader (const std::string &header, bool new_line)
 
const std::string & getFooter () const
 
void setFooter (const std::string &footer)
 
void appendFooter (const std::string &footer, bool new_line)
 
void prependFooter (const std::string &footer, bool new_line)
 
std::ostream & convert2CSV (std::ostream &os) const
 

Static Public Member Functions

static TimingReportImpl loadCSV (std::istream &is)
 
static TimingReportImpl loadCSV (const std::string &csv_content)
 
static void setTimingPrefix (TimingPrefixedSeconds &prefix, double seconds, char ch_prefix)
 
static void computeTimingPrefix (TimingPrefixedSeconds &prefix, double seconds)
 

Static Public Attributes

static constexpr const char * TagVersion = "#v,0,1,1"
 
static constexpr const char * TagReportHeader = "#0100"
 
static constexpr const char * TagFailedTest = "#XXXX"
 
static constexpr const char * TagReportData = "#0200"
 
static constexpr const char * TagReportFooter = "#8E00"
 
static constexpr const char * TagReportEnd = "#8FFF"
 

Detailed Description

Definition at line 21 of file hebench_report_impl.h.

Constructor & Destructor Documentation

◆ TimingReportImpl()

hebench::ReportGen::TimingReportImpl::TimingReportImpl ( )

Definition at line 23 of file hebench_report_impl.cpp.

Member Function Documentation

◆ appendFooter()

void hebench::ReportGen::TimingReportImpl::appendFooter ( const std::string &  footer,
bool  new_line 
)

Definition at line 77 of file hebench_report_impl.cpp.

◆ appendHeader()

void hebench::ReportGen::TimingReportImpl::appendHeader ( const std::string &  header,
bool  new_line 
)

Definition at line 57 of file hebench_report_impl.cpp.

◆ clear()

void hebench::ReportGen::TimingReportImpl::clear ( )

Definition at line 52 of file hebench_report_impl.cpp.

◆ computeTimingPrefix()

void hebench::ReportGen::TimingReportImpl::computeTimingPrefix ( TimingPrefixedSeconds prefix,
double  seconds 
)
static

Definition at line 603 of file hebench_report_impl.cpp.

◆ convert2CSV()

std::ostream & hebench::ReportGen::TimingReportImpl::convert2CSV ( std::ostream &  os) const

Definition at line 97 of file hebench_report_impl.cpp.

◆ getEvents()

const std::vector<std::shared_ptr<TimingReportEventC> >& hebench::ReportGen::TimingReportImpl::getEvents ( ) const
inline

Definition at line 42 of file hebench_report_impl.h.

◆ getEventTypeIDs()

const std::vector<std::uint32_t>& hebench::ReportGen::TimingReportImpl::getEventTypeIDs ( ) const
inline

Definition at line 37 of file hebench_report_impl.h.

◆ getEventTypes()

const std::unordered_map<std::uint32_t, std::string>& hebench::ReportGen::TimingReportImpl::getEventTypes ( ) const
inline

Definition at line 36 of file hebench_report_impl.h.

◆ getFooter()

const std::string& hebench::ReportGen::TimingReportImpl::getFooter ( ) const
inline

Definition at line 51 of file hebench_report_impl.h.

◆ getHeader()

const std::string& hebench::ReportGen::TimingReportImpl::getHeader ( ) const
inline

Definition at line 46 of file hebench_report_impl.h.

◆ getMainEventID()

std::uint32_t hebench::ReportGen::TimingReportImpl::getMainEventID ( ) const
inline

Definition at line 39 of file hebench_report_impl.h.

◆ loadCSV() [1/2]

TimingReportImpl hebench::ReportGen::TimingReportImpl::loadCSV ( const std::string &  csv_content)
static

Definition at line 478 of file hebench_report_impl.cpp.

◆ loadCSV() [2/2]

TimingReportImpl hebench::ReportGen::TimingReportImpl::loadCSV ( std::istream &  is)
static

Definition at line 484 of file hebench_report_impl.cpp.

◆ newEvent()

void hebench::ReportGen::TimingReportImpl::newEvent ( std::shared_ptr< TimingReportEventC p_event,
const std::string &  set_header = std::string() 
)

Definition at line 37 of file hebench_report_impl.cpp.

◆ newEventType()

void hebench::ReportGen::TimingReportImpl::newEventType ( std::uint32_t  set_id,
const std::string &  set_header,
bool  is_main_event = false 
)

Definition at line 28 of file hebench_report_impl.cpp.

◆ prependFooter()

void hebench::ReportGen::TimingReportImpl::prependFooter ( const std::string &  footer,
bool  new_line 
)

Definition at line 87 of file hebench_report_impl.cpp.

◆ prependHeader()

void hebench::ReportGen::TimingReportImpl::prependHeader ( const std::string &  header,
bool  new_line 
)

Definition at line 67 of file hebench_report_impl.cpp.

◆ reserveCapacityForEvents()

void hebench::ReportGen::TimingReportImpl::reserveCapacityForEvents ( std::size_t  new_capacity)

Definition at line 47 of file hebench_report_impl.cpp.

◆ setFooter()

void hebench::ReportGen::TimingReportImpl::setFooter ( const std::string &  footer)
inline

Definition at line 52 of file hebench_report_impl.h.

◆ setHeader()

void hebench::ReportGen::TimingReportImpl::setHeader ( const std::string &  header)
inline

Definition at line 47 of file hebench_report_impl.h.

◆ setTimingPrefix()

void hebench::ReportGen::TimingReportImpl::setTimingPrefix ( TimingPrefixedSeconds prefix,
double  seconds,
char  ch_prefix 
)
static

Definition at line 568 of file hebench_report_impl.cpp.

Member Data Documentation

◆ TagFailedTest

constexpr const char* hebench::ReportGen::TimingReportImpl::TagFailedTest = "#XXXX"
staticconstexpr

Definition at line 28 of file hebench_report_impl.h.

◆ TagReportData

constexpr const char* hebench::ReportGen::TimingReportImpl::TagReportData = "#0200"
staticconstexpr

Definition at line 29 of file hebench_report_impl.h.

◆ TagReportEnd

constexpr const char* hebench::ReportGen::TimingReportImpl::TagReportEnd = "#8FFF"
staticconstexpr

Definition at line 31 of file hebench_report_impl.h.

◆ TagReportFooter

constexpr const char* hebench::ReportGen::TimingReportImpl::TagReportFooter = "#8E00"
staticconstexpr

Definition at line 30 of file hebench_report_impl.h.

◆ TagReportHeader

constexpr const char* hebench::ReportGen::TimingReportImpl::TagReportHeader = "#0100"
staticconstexpr

Definition at line 27 of file hebench_report_impl.h.

◆ TagVersion

constexpr const char* hebench::ReportGen::TimingReportImpl::TagVersion = "#v,0,1,1"
staticconstexpr

Definition at line 26 of file hebench_report_impl.h.


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