gem5  v21.1.0.2
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< Average, ScalarInfoProxy > gem5::statistics::DataWrap< AverageDeviation, DistInfoProxy > gem5::statistics::DataWrap< AverageVector, VectorInfoProxy > gem5::statistics::DataWrap< Derived, DistInfoProxy > gem5::statistics::DataWrap< Derived, ScalarInfoProxy > gem5::statistics::DataWrap< Derived, SparseHistInfoProxy > gem5::statistics::DataWrap< Derived, Vector2dInfoProxy > gem5::statistics::DataWrap< Derived, VectorDistInfoProxy > gem5::statistics::DataWrap< Derived, VectorInfoProxy > gem5::statistics::DataWrap< Distribution, DistInfoProxy > gem5::statistics::DataWrap< Formula, FormulaInfoProxy > gem5::statistics::DataWrap< Histogram, DistInfoProxy > gem5::statistics::DataWrap< Scalar, ScalarInfoProxy > gem5::statistics::DataWrap< SparseHistogram, SparseHistInfoProxy > gem5::statistics::DataWrap< StandardDeviation, DistInfoProxy > gem5::statistics::DataWrap< Value, ScalarInfoProxy > gem5::statistics::DataWrap< Vector, VectorInfoProxy > gem5::statistics::DataWrap< Vector2d, Vector2dInfoProxy > gem5::statistics::DataWrap< VectorAverageDeviation, VectorDistInfoProxy > gem5::statistics::DataWrap< VectorDistribution, VectorDistInfoProxy > gem5::statistics::DataWrap< VectorStandardDeviation, VectorDistInfoProxy > gem5::statistics::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()

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

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

◆ info() [1/2]

const 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, and gem5::statistics::statsMap().

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

◆ info() [2/2]

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

Grab the information class for this statistic.

◆ reset()

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

Reset the stat to the default state.

Definition at line 208 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< Distribution, DistInfoProxy >::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 214 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(), and setInfo().


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

Generated on Tue Sep 21 2021 12:32:29 for gem5 by doxygen 1.8.17