gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Stats::ValueBase< Derived > Class Template Reference

#include <statistics.hh>

Inheritance diagram for Stats::ValueBase< Derived >:
Stats::DataWrap< Derived, ScalarInfoProxy > Stats::InfoAccess

Public Member Functions

 ValueBase ()
 
 ~ValueBase ()
 
template<class T >
Derived & scalar (T &value)
 
template<class T >
Derived & functor (T &func)
 
template<class T , class V >
Derived & method (T *obj, V(T::*method)() const)
 Extended functor that calls the specified method of the provided object. More...
 
Counter value ()
 
Result result () const
 
Result total () const
 
size_type size () const
 
std::string str () const
 
bool zero () const
 
bool check () const
 
void prepare ()
 
void reset ()
 
- Public Member Functions inherited from Stats::DataWrap< Derived, ScalarInfoProxy >
const Infoinfo () const
 
 DataWrap ()
 
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...
 
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
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...
 

Private Attributes

ProxyInfoproxy
 

Additional Inherited Members

- Public Types inherited from Stats::DataWrap< Derived, ScalarInfoProxy >
typedef ScalarInfoProxy< Derived > Info
 
- Protected Member Functions inherited from Stats::DataWrap< Derived, ScalarInfoProxy >
Derived & self ()
 
Infoinfo ()
 
 DataWrap (const DataWrap &stat)
 Copy constructor, copies are not allowed. More...
 
void operator= (const DataWrap &)
 Can't copy stats. More...
 
- Protected Member Functions inherited from Stats::InfoAccess
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

template<class Derived>
class Stats::ValueBase< Derived >

Definition at line 804 of file statistics.hh.

Constructor & Destructor Documentation

template<class Derived>
Stats::ValueBase< Derived >::ValueBase ( )
inline

Definition at line 810 of file statistics.hh.

template<class Derived>
Stats::ValueBase< Derived >::~ValueBase ( )
inline

Definition at line 811 of file statistics.hh.

Member Function Documentation

template<class Derived>
bool Stats::ValueBase< Derived >::check ( ) const
inline

Definition at line 854 of file statistics.hh.

template<class Derived>
template<class T >
Derived& Stats::ValueBase< Derived >::functor ( T &  func)
inline

Definition at line 824 of file statistics.hh.

Referenced by Stats::Global::Global().

template<class Derived>
template<class T , class V >
Derived& Stats::ValueBase< Derived >::method ( T *  obj,
V(T::*)() const  method 
)
inline

Extended functor that calls the specified method of the provided object.

Parameters
objPointer to the object whose method should be called.
methodPointer of the function / method of the object.
Returns
Updated stats item.

Definition at line 840 of file statistics.hh.

Referenced by Stats::ValueBase< Value >::method(), PowerModelState::regStats(), ThermalDomain::regStats(), VoltageDomain::regStats(), and PowerModel::regStats().

template<class Derived>
void Stats::ValueBase< Derived >::prepare ( )
inline

Definition at line 855 of file statistics.hh.

template<class Derived>
void Stats::ValueBase< Derived >::reset ( )
inline

Definition at line 856 of file statistics.hh.

template<class Derived>
Result Stats::ValueBase< Derived >::result ( ) const
inline

Definition at line 848 of file statistics.hh.

template<class Derived>
template<class T >
Derived& Stats::ValueBase< Derived >::scalar ( T &  value)
inline

Definition at line 815 of file statistics.hh.

Referenced by Stats::Global::Global(), and ClockDomain::regStats().

template<class Derived>
size_type Stats::ValueBase< Derived >::size ( ) const
inline

Definition at line 850 of file statistics.hh.

template<class Derived>
std::string Stats::ValueBase< Derived >::str ( ) const
inline

Definition at line 852 of file statistics.hh.

template<class Derived>
Result Stats::ValueBase< Derived >::total ( ) const
inline

Definition at line 849 of file statistics.hh.

template<class Derived>
Counter Stats::ValueBase< Derived >::value ( )
inline
template<class Derived>
bool Stats::ValueBase< Derived >::zero ( ) const
inline

Definition at line 853 of file statistics.hh.

Member Data Documentation

template<class Derived>
ProxyInfo* Stats::ValueBase< Derived >::proxy
private

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

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