gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Stats::InfoAccess Class Reference

#include <statistics.hh>

Inheritance diagram for Stats::InfoAccess:
Stats::DataWrap< Average, ScalarInfoProxy > Stats::DataWrap< AverageDeviation, DistInfoProxy > Stats::DataWrap< AverageVector, VectorInfoProxy > Stats::DataWrap< Derived, DistInfoProxy > Stats::DataWrap< Derived, ScalarInfoProxy > Stats::DataWrap< Derived, SparseHistInfoProxy > Stats::DataWrap< Derived, Vector2dInfoProxy > Stats::DataWrap< Derived, VectorDistInfoProxy > Stats::DataWrap< Derived, VectorInfoProxy > Stats::DataWrap< Distribution, DistInfoProxy > Stats::DataWrap< Formula, FormulaInfoProxy > Stats::DataWrap< Histogram, DistInfoProxy > Stats::DataWrap< Scalar, ScalarInfoProxy > Stats::DataWrap< SparseHistogram, SparseHistInfoProxy > Stats::DataWrap< StandardDeviation, DistInfoProxy > Stats::DataWrap< Value, ScalarInfoProxy > Stats::DataWrap< Vector, VectorInfoProxy > Stats::DataWrap< Vector2d, Vector2dInfoProxy > Stats::DataWrap< VectorAverageDeviation, VectorDistInfoProxy > Stats::DataWrap< VectorDistribution, VectorDistInfoProxy > Stats::DataWrap< VectorStandardDeviation, VectorDistInfoProxy > Stats::DataWrap< Derived, InfoProxyType >

Public Member Functions

 InfoAccess ()
 
void reset ()
 Reset the stat to the default state. More...
 
bool zero () const
 
bool check () const
 Check that this stat has been set up properly and is ready for use. More...
 

Protected Member Functions

void setInfo (Group *parent, Info *info)
 Set up an info class for this statistic. More...
 
void setParams (const StorageParams *params)
 Save Storage class parameters if any. More...
 
void setInit ()
 Save Storage class parameters if any. More...
 
Infoinfo ()
 Grab the information class for this statistic. More...
 
const Infoinfo () const
 Grab the information class for this statistic. More...
 

Private Attributes

Info_info
 

Detailed Description

Definition at line 183 of file statistics.hh.

Constructor & Destructor Documentation

◆ InfoAccess()

Stats::InfoAccess::InfoAccess ( )
inline

Definition at line 202 of file statistics.hh.

Member Function Documentation

◆ check()

bool Stats::InfoAccess::check ( ) const
inline

Check that this stat has been set up properly and is ready for use.

Returns
true for success

Definition at line 221 of file statistics.hh.

◆ info() [1/2]

Info * Stats::InfoAccess::info ( )
protected

Grab the information class for this statistic.

Definition at line 117 of file statistics.cc.

References ArmISA::i, and Stats::statsMap().

Referenced by Stats::DataWrap< SparseHistogram, SparseHistInfoProxy >::info().

◆ info() [2/2]

const Info * Stats::InfoAccess::info ( ) const
protected

Grab the information class for this statistic.

Definition at line 131 of file statistics.cc.

References ArmISA::i, and Stats::statsMap().

◆ reset()

void Stats::InfoAccess::reset ( )
inline

Reset the stat to the default state.

Definition at line 208 of file statistics.hh.

◆ setInfo()

void Stats::InfoAccess::setInfo ( Group parent,
Info info 
)
protected

Set up an info class for this statistic.

Definition at line 81 of file statistics.cc.

References panic_if, Stats::statsList(), and Stats::statsMap().

◆ setInit()

void Stats::InfoAccess::setInit ( )
protected

Save Storage class parameters if any.

Definition at line 111 of file statistics.cc.

References Stats::init.

Referenced by Stats::Formula::operator+=(), and Stats::Formula::operator=().

◆ setParams()

void Stats::InfoAccess::setParams ( const StorageParams params)
protected

Save Storage class parameters if any.

Definition at line 105 of file statistics.cc.

◆ zero()

bool Stats::InfoAccess::zero ( ) const
inline
Returns
true if this stat has a value and satisfies its requirement as a prereq

Definition at line 214 of file statistics.hh.

Member Data Documentation

◆ _info

Info* Stats::InfoAccess::_info
private

Definition at line 186 of file statistics.hh.


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

Generated on Mon Jun 8 2020 15:46:03 for gem5 by doxygen 1.8.13