gem5  v20.1.0.0
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
Stats::DistProxy< Stat > Class Template Reference

#include <statistics.hh>

Public Member Functions

 DistProxy (Stat &s, off_type i)
 
 DistProxy (const DistProxy &sp)
 
const DistProxyoperator= (const DistProxy &sp)
 
template<typename U >
void sample (const U &v, int n=1)
 
size_type size () const
 
bool zero () const
 
void reset ()
 Proxy has no state. More...
 

Protected Member Functions

Stat::Storage * data ()
 
const Stat::Storage * data () const
 

Private Attributes

Stat & stat
 
off_type index
 

Detailed Description

template<class Stat>
class Stats::DistProxy< Stat >

Definition at line 1961 of file statistics.hh.

Constructor & Destructor Documentation

◆ DistProxy() [1/2]

template<class Stat >
Stats::DistProxy< Stat >::DistProxy ( Stat &  s,
off_type  i 
)
inline

Definition at line 2074 of file statistics.hh.

◆ DistProxy() [2/2]

template<class Stat >
Stats::DistProxy< Stat >::DistProxy ( const DistProxy< Stat > &  sp)
inline

Definition at line 2078 of file statistics.hh.

Member Function Documentation

◆ data() [1/2]

template<class Stat >
Stat::Storage* Stats::DistProxy< Stat >::data ( )
inlineprotected

◆ data() [2/2]

template<class Stat >
const Stat::Storage* Stats::DistProxy< Stat >::data ( ) const
inlineprotected

◆ operator=()

template<class Stat >
const DistProxy& Stats::DistProxy< Stat >::operator= ( const DistProxy< Stat > &  sp)
inline

◆ reset()

template<class Stat >
void Stats::DistProxy< Stat >::reset ( )
inline

Proxy has no state.

Nothing to reset.

Definition at line 2113 of file statistics.hh.

◆ sample()

template<class Stat >
template<typename U >
void Stats::DistProxy< Stat >::sample ( const U &  v,
int  n = 1 
)
inline

Definition at line 2093 of file statistics.hh.

References Stats::DistProxy< Stat >::data(), ArmISA::n, and ArmISA::v.

◆ size()

template<class Stat >
size_type Stats::DistProxy< Stat >::size ( ) const
inline

Definition at line 2099 of file statistics.hh.

◆ zero()

template<class Stat >
bool Stats::DistProxy< Stat >::zero ( ) const
inline

Definition at line 2105 of file statistics.hh.

References Stats::DistProxy< Stat >::data().

Member Data Documentation

◆ index

template<class Stat >
off_type Stats::DistProxy< Stat >::index
private

◆ stat

template<class Stat >
Stat& Stats::DistProxy< Stat >::stat
private

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