gem5  v22.1.0.0
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
gem5::statistics::InfoAccess Class Reference

#include <statistics.hh>

Inheritance diagram for gem5::statistics::InfoAccess:
gem5::statistics::DataWrap< Derived, SparseHistInfoProxy > gem5::statistics::DataWrap< Derived, ScalarInfoProxy > gem5::statistics::DataWrap< Derived, DistInfoProxy > gem5::statistics::DataWrap< Derived, InfoProxyType > gem5::statistics::SparseHistBase< Derived, Stor > gem5::statistics::ScalarBase< Derived, Stor > gem5::statistics::ValueBase< Derived > gem5::statistics::DistBase< Derived, Stor > gem5::statistics::DataWrapVec< Derived, VectorInfoProxy > gem5::statistics::DataWrapVec< Derived, VectorDistInfoProxy > gem5::statistics::DataWrapVec< Formula, FormulaInfoProxy > gem5::statistics::DistBase< Histogram, HistStor > gem5::statistics::DistBase< AverageDeviation, AvgSampleStor > gem5::statistics::DistBase< StandardDeviation, SampleStor > gem5::statistics::DistBase< Distribution, DistStor > gem5::statistics::ScalarBase< Average, AvgStor > gem5::statistics::ScalarBase< Scalar, StatStor > gem5::statistics::SparseHistBase< SparseHistogram, SparseHistStor > gem5::statistics::ValueBase< Value > gem5::statistics::DataWrapVec< 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...
 
bool newStyleStats () const
 Check if the info is new style stats. More...
 

Private Attributes

Info_info
 

Detailed Description

Definition at line 183 of file statistics.hh.

Constructor & Destructor Documentation

◆ InfoAccess()

gem5::statistics::InfoAccess::InfoAccess ( )
inline

Definition at line 205 of file statistics.hh.

Member Function Documentation

◆ check()

bool gem5::statistics::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 224 of file statistics.hh.

◆ info() [1/2]

Info * gem5::statistics::InfoAccess::info ( )
protected

Grab the information class for this statistic.

Definition at line 112 of file statistics.cc.

References _info, gem5::ArmISA::i, newStyleStats(), and gem5::statistics::statsMap().

Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::info(), setInfo(), setInit(), and setParams().

◆ info() [2/2]

const Info * gem5::statistics::InfoAccess::info ( ) const
protected

Grab the information class for this statistic.

Definition at line 126 of file statistics.cc.

References _info, gem5::ArmISA::i, newStyleStats(), and gem5::statistics::statsMap().

◆ newStyleStats()

bool gem5::statistics::InfoAccess::newStyleStats ( ) const
protected

◆ reset()

void gem5::statistics::InfoAccess::reset ( )
inline

Reset the stat to the default state.

Definition at line 211 of file statistics.hh.

◆ setInfo()

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

Set up an info class for this statistic.

Definition at line 76 of file statistics.cc.

References _info, info(), panic_if, gem5::statistics::statsList(), and gem5::statistics::statsMap().

Referenced by gem5::statistics::DataWrap< Derived, InfoProxyType >::DataWrap().

◆ setInit()

void gem5::statistics::InfoAccess::setInit ( )
protected

◆ setParams()

void gem5::statistics::InfoAccess::setParams ( const StorageParams params)
protected

◆ zero()

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

Definition at line 217 of file statistics.hh.

Member Data Documentation

◆ _info

Info* gem5::statistics::InfoAccess::_info
private

Definition at line 186 of file statistics.hh.

Referenced by info(), newStyleStats(), and setInfo().


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

Generated on Wed Dec 21 2022 10:24:26 for gem5 by doxygen 1.9.1