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

#include <statistics.hh>

Public Member Functions

const VResultresult () const
 
Result total () const
 
 VectorProxy (Stat &s, off_type o, size_type l)
 
 VectorProxy (const VectorProxy &sp)
 
const VectorProxyoperator= (const VectorProxy &sp)
 
ScalarProxy< Stat > operator[] (off_type index)
 
size_type size () const
 

Private Member Functions

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

Private Attributes

Stat & stat
 
off_type offset
 
size_type len
 
VResult vec
 

Detailed Description

template<class Stat>
class Stats::VectorProxy< Stat >

Definition at line 1198 of file statistics.hh.

Constructor & Destructor Documentation

◆ VectorProxy() [1/2]

template<class Stat >
Stats::VectorProxy< Stat >::VectorProxy ( Stat &  s,
off_type  o,
size_type  l 
)
inline

Definition at line 1244 of file statistics.hh.

◆ VectorProxy() [2/2]

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

Definition at line 1249 of file statistics.hh.

Member Function Documentation

◆ data() [1/2]

template<class Stat >
Stat::Storage* Stats::VectorProxy< Stat >::data ( off_type  index)
inlineprivate

◆ data() [2/2]

template<class Stat >
const Stat::Storage* Stats::VectorProxy< Stat >::data ( off_type  index) const
inlineprivate

◆ operator=()

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

◆ operator[]()

template<class Stat >
ScalarProxy<Stat> Stats::VectorProxy< Stat >::operator[] ( off_type  index)
inline

◆ result()

template<class Stat >
const VResult& Stats::VectorProxy< Stat >::result ( ) const
inline

◆ size()

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

◆ total()

template<class Stat >
Result Stats::VectorProxy< Stat >::total ( ) const
inline

Member Data Documentation

◆ len

template<class Stat >
size_type Stats::VectorProxy< Stat >::len
private

◆ offset

template<class Stat >
off_type Stats::VectorProxy< Stat >::offset
private

◆ stat

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

◆ vec

template<class Stat >
VResult Stats::VectorProxy< Stat >::vec
mutableprivate

Definition at line 1206 of file statistics.hh.

Referenced by Stats::VectorProxy< Stat >::result().


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

Generated on Wed Sep 30 2020 14:03:13 for gem5 by doxygen 1.8.17