gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 1906 of file statistics.hh.

Constructor & Destructor Documentation

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

Definition at line 2018 of file statistics.hh.

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

Definition at line 2022 of file statistics.hh.

Member Function Documentation

template<class Stat >
Stat::Storage* Stats::DistProxy< Stat >::data ( )
inlineprotected
template<class Stat >
const Stat::Storage* Stats::DistProxy< Stat >::data ( ) const
inlineprotected
template<class Stat >
const DistProxy& Stats::DistProxy< Stat >::operator= ( const DistProxy< Stat > &  sp)
inline
template<class Stat >
void Stats::DistProxy< Stat >::reset ( )
inline

Proxy has no state.

Nothing to reset.

Definition at line 2057 of file statistics.hh.

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

Definition at line 2037 of file statistics.hh.

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

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

Definition at line 2043 of file statistics.hh.

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

Definition at line 2049 of file statistics.hh.

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

Member Data Documentation

template<class Stat >
off_type Stats::DistProxy< Stat >::index
private
template<class Stat >
Stat& Stats::DistProxy< Stat >::stat
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