gem5  v20.1.0.0
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 181 of file statistics.hh.

Constructor & Destructor Documentation

◆ InfoAccess()

Stats::InfoAccess::InfoAccess ( )
inline

Definition at line 200 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 219 of file statistics.hh.

◆ info() [1/2]

const 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.

◆ reset()

void Stats::InfoAccess::reset ( )
inline

Reset the stat to the default state.

Definition at line 206 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().

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

◆ setInit()

void Stats::InfoAccess::setInit ( )
protected

◆ setParams()

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

◆ 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 212 of file statistics.hh.

Member Data Documentation

◆ _info

Info* Stats::InfoAccess::_info
private

Definition at line 184 of file statistics.hh.


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

Generated on Wed Sep 30 2020 14:03:12 for gem5 by doxygen 1.8.17