gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | 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

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

Detailed Description

Definition at line 173 of file statistics.hh.

Member Function Documentation

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

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

Grab the information class for this statistic.

Definition at line 98 of file statistics.cc.

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

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

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

Grab the information class for this statistic.

Definition at line 106 of file statistics.cc.

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

void Stats::InfoAccess::reset ( )
inline

Reset the stat to the default state.

Definition at line 192 of file statistics.hh.

void Stats::InfoAccess::setInfo ( Info info)
protected

Set up an info class for this statistic.

Definition at line 70 of file statistics.cc.

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

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

void Stats::InfoAccess::setInit ( )
protected
void Stats::InfoAccess::setParams ( const StorageParams params)
protected
bool Stats::InfoAccess::zero ( ) const
inline
Returns
true if this stat has a value and satisfies its requirement as a prereq

Definition at line 198 of file statistics.hh.


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

Generated on Fri Jun 9 2017 13:04:38 for gem5 by doxygen 1.8.6