gem5  v21.1.0.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
gem5::statistics::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 gem5::statistics::VectorProxy< Stat >

Definition at line 1058 of file statistics.hh.

Constructor & Destructor Documentation

◆ VectorProxy() [1/2]

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

Definition at line 1104 of file statistics.hh.

◆ VectorProxy() [2/2]

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

Definition at line 1109 of file statistics.hh.

Member Function Documentation

◆ data() [1/2]

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

◆ data() [2/2]

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

◆ operator=()

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

◆ operator[]()

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

◆ result()

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

◆ size()

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

◆ total()

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

Member Data Documentation

◆ len

template<class Stat >
size_type gem5::statistics::VectorProxy< Stat >::len
private

◆ offset

template<class Stat >
off_type gem5::statistics::VectorProxy< Stat >::offset
private

◆ stat

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

◆ vec

template<class Stat >
VResult gem5::statistics::VectorProxy< Stat >::vec
mutableprivate

Definition at line 1066 of file statistics.hh.

Referenced by gem5::statistics::VectorProxy< Stat >::result().


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

Generated on Tue Sep 21 2021 12:32:31 for gem5 by doxygen 1.8.17