gem5 v24.0.0.0
Loading...
Searching...
No Matches
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.
 

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

◆ DistProxy() [2/2]

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

Definition at line 1474 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 1509 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 1495 of file statistics.hh.

◆ zero()

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

Definition at line 1501 of file statistics.hh.

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

Member Data Documentation

◆ index

◆ stat


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

Generated on Tue Jun 18 2024 16:24:23 for gem5 by doxygen 1.11.0