gem5  v20.1.0.0
Public Types | Public Member Functions | Protected Member Functions | List of all members
Stats::DataWrap< Derived, InfoProxyType > Class Template Reference

#include <statistics.hh>

Inheritance diagram for Stats::DataWrap< Derived, InfoProxyType >:
Stats::InfoAccess Stats::DataWrapVec< Derived, InfoProxyType > Stats::DataWrapVec2d< Derived, InfoProxyType > Stats::Vector2dBase< Derived, Stor >

Public Types

typedef InfoProxyType< Derived > Info
 

Public Member Functions

const Infoinfo () const
 
 DataWrap ()=delete
 
 DataWrap (const DataWrap &)=delete
 
DataWrapoperator= (const DataWrap &)=delete
 
 DataWrap (Group *parent, const char *name, const char *desc)
 
Derived & name (const std::string &name)
 Set the name and marks this stat to print at the end of simulation. More...
 
const std::string & name () const
 
Derived & setSeparator (const std::string &_sep)
 Set the character(s) used between the name and vector number on vectors, dist, etc. More...
 
const std::string & setSeparator () const
 
Derived & desc (const std::string &_desc)
 Set the description and marks this stat to print at the end of simulation. More...
 
Derived & precision (int _precision)
 Set the precision and marks this stat to print at the end of simulation. More...
 
Derived & flags (Flags _flags)
 Set the flags and marks this stat to print at the end of simulation. More...
 
template<class Stat >
Derived & prereq (const Stat &prereq)
 Set the prerequisite stat and marks this stat to print at the end of simulation. More...
 
- Public Member Functions inherited from Stats::InfoAccess
 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

Derived & self ()
 
Infoinfo ()
 
- Protected Member Functions inherited from Stats::InfoAccess
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...
 

Detailed Description

template<class Derived, template< class > class InfoProxyType>
class Stats::DataWrap< Derived, InfoProxyType >

Definition at line 223 of file statistics.hh.

Member Typedef Documentation

◆ Info

template<class Derived , template< class > class InfoProxyType>
typedef InfoProxyType<Derived> Stats::DataWrap< Derived, InfoProxyType >::Info

Definition at line 226 of file statistics.hh.

Constructor & Destructor Documentation

◆ DataWrap() [1/3]

template<class Derived , template< class > class InfoProxyType>
Stats::DataWrap< Derived, InfoProxyType >::DataWrap ( )
delete

◆ DataWrap() [2/3]

template<class Derived , template< class > class InfoProxyType>
Stats::DataWrap< Derived, InfoProxyType >::DataWrap ( const DataWrap< Derived, InfoProxyType > &  )
delete

◆ DataWrap() [3/3]

template<class Derived , template< class > class InfoProxyType>
Stats::DataWrap< Derived, InfoProxyType >::DataWrap ( Group parent,
const char *  name,
const char *  desc 
)
inline

Definition at line 251 of file statistics.hh.

Member Function Documentation

◆ desc()

template<class Derived , template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::desc ( const std::string &  _desc)
inline

◆ flags()

template<class Derived , template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::flags ( Flags  _flags)
inline

◆ info() [1/2]

template<class Derived , template< class > class InfoProxyType>
Info* Stats::DataWrap< Derived, InfoProxyType >::info ( )
inlineprotected

◆ info() [2/2]

template<class Derived , template< class > class InfoProxyType>
const Info* Stats::DataWrap< Derived, InfoProxyType >::info ( ) const
inline

Definition at line 240 of file statistics.hh.

◆ name() [1/2]

template<class Derived , template< class > class InfoProxyType>
const std::string& Stats::DataWrap< Derived, InfoProxyType >::name ( ) const
inline

◆ name() [2/2]

template<class Derived , template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::name ( const std::string &  name)
inline

◆ operator=()

template<class Derived , template< class > class InfoProxyType>
DataWrap& Stats::DataWrap< Derived, InfoProxyType >::operator= ( const DataWrap< Derived, InfoProxyType > &  )
delete

◆ precision()

template<class Derived , template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::precision ( int  _precision)
inline

Set the precision and marks this stat to print at the end of simulation.

Parameters
_precisionThe new precision
Returns
A reference to this stat.

Definition at line 319 of file statistics.hh.

Referenced by BPredUnit::BPredUnitStats::BPredUnitStats(), Stats::Global::Global(), EtherDevice::regStats(), Minor::MinorStats::regStats(), and TraceCPU::TraceStats::TraceStats().

◆ prereq()

template<class Derived , template< class > class InfoProxyType>
template<class Stat >
Derived& Stats::DataWrap< Derived, InfoProxyType >::prereq ( const Stat &  prereq)
inline

Set the prerequisite stat and marks this stat to print at the end of simulation.

Parameters
prereqThe prerequisite stat.
Returns
A reference to this stat.

Definition at line 345 of file statistics.hh.

Referenced by DefaultCommit< Impl >::CommitStats::CommitStats(), DefaultDecode< Impl >::DecodeStats::DecodeStats(), DefaultFetch< Impl >::FetchStatGroup::FetchStatGroup(), Stats::Global::Global(), EtherDevice::regStats(), Minor::MinorStats::regStats(), BaseSimpleCPU::regStats(), and DefaultRename< Impl >::RenameStats::RenameStats().

◆ self()

template<class Derived , template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::self ( )
inlineprotected

Definition at line 229 of file statistics.hh.

◆ setSeparator() [1/2]

template<class Derived , template< class > class InfoProxyType>
const std::string& Stats::DataWrap< Derived, InfoProxyType >::setSeparator ( ) const
inline

Definition at line 295 of file statistics.hh.

◆ setSeparator() [2/2]

template<class Derived , template< class > class InfoProxyType>
Derived& Stats::DataWrap< Derived, InfoProxyType >::setSeparator ( const std::string &  _sep)
inline

Set the character(s) used between the name and vector number on vectors, dist, etc.

Parameters
_sepThe new separator string
Returns
A reference to this stat.

Definition at line 290 of file statistics.hh.


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

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