powerd++  0.4.4
Public Member Functions | Private Attributes | List of all members
anonymous_namespace{libloadplay.cpp}::Report::Frame Class Reference

Represents a frame of the report. More...

Collaboration diagram for anonymous_namespace{libloadplay.cpp}::Report::Frame:
[legend]

Public Member Functions

 Frame (Report &report, uint64_t const duration)
 Construct a report frame. More...
 
CoreFrameReportoperator[] (coreid_t const i)
 Subscript operator for per core frame report data. More...
 
const CoreFrameReportoperator[] (coreid_t const i) const
 Subscript operator for per core frame report data. More...
 
 ~Frame ()
 Finalises the frame by outputting it.
 

Private Attributes

Reportreport
 The report this frame belongs to.
 

Detailed Description

Represents a frame of the report.

It provides access to each CoreFrameReport via the subscript operator [].

The frame data is output when the frame goes out of scope.

Constructor & Destructor Documentation

◆ Frame()

anonymous_namespace{libloadplay.cpp}::Report::Frame::Frame ( Report report,
uint64_t const  duration 
)
inline

Construct a report frame.

Parameters
reportThe report this frame belongs to
durationThe frame duration

Member Function Documentation

◆ operator[]() [1/2]

CoreFrameReport& anonymous_namespace{libloadplay.cpp}::Report::Frame::operator[] ( coreid_t const  i)
inline

Subscript operator for per core frame report data.

Parameters
iThe core index
Returns
A reference to the core frame data

◆ operator[]() [2/2]

const CoreFrameReport& anonymous_namespace{libloadplay.cpp}::Report::Frame::operator[] ( coreid_t const  i) const
inline

Subscript operator for per core frame report data.

Parameters
iThe core index
Returns
A const reference to the core frame data

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