gem5  v22.1.0.0
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
gem5::statistics::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 gem5::statistics::DistProxy< Stat >

Definition at line 1460 of file statistics.hh.

Constructor & Destructor Documentation

◆ DistProxy() [1/2]

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

Definition at line 1471 of file statistics.hh.

◆ DistProxy() [2/2]

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

Definition at line 1475 of file statistics.hh.

Member Function Documentation

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ operator=()

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

◆ reset()

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

Proxy has no state.

Nothing to reset.

Definition at line 1510 of file statistics.hh.

◆ sample()

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

◆ size()

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

Definition at line 1496 of file statistics.hh.

◆ zero()

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

Definition at line 1502 of file statistics.hh.

References gem5::statistics::DistProxy< Stat >::data().

Member Data Documentation

◆ index

template<class Stat >
off_type gem5::statistics::DistProxy< Stat >::index
private

◆ stat

template<class Stat >
Stat& gem5::statistics::DistProxy< Stat >::stat
private

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

Generated on Wed Dec 21 2022 10:24:26 for gem5 by doxygen 1.9.1