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

#include <statistics.hh>

Inheritance diagram for Stats::ScalarProxyNode< Stat >:
Stats::Node

Public Member Functions

 ScalarProxyNode (const ScalarProxy< Stat > &p)
 
const VResultresult () const
 Return the result vector of this subtree. More...
 
Result total () const
 Return the total of the result vector. More...
 
size_type size () const
 Return the number of nodes in the subtree starting at this node. More...
 
std::string str () const
 
- Public Member Functions inherited from Stats::Node
virtual ~Node ()
 

Private Attributes

const ScalarProxy< Stat > proxy
 
VResult vresult
 

Detailed Description

template<class Stat>
class Stats::ScalarProxyNode< Stat >

Definition at line 2183 of file statistics.hh.

Constructor & Destructor Documentation

◆ ScalarProxyNode()

template<class Stat >
Stats::ScalarProxyNode< Stat >::ScalarProxyNode ( const ScalarProxy< Stat > &  p)
inline

Definition at line 2190 of file statistics.hh.

Member Function Documentation

◆ result()

template<class Stat >
const VResult& Stats::ScalarProxyNode< Stat >::result ( ) const
inlinevirtual

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements Stats::Node.

Definition at line 2195 of file statistics.hh.

References Stats::ScalarProxyNode< Stat >::proxy, and Stats::ScalarProxyNode< Stat >::vresult.

◆ size()

template<class Stat >
size_type Stats::ScalarProxyNode< Stat >::size ( ) const
inlinevirtual

Return the number of nodes in the subtree starting at this node.

Returns
the number of nodes in this subtree.

Implements Stats::Node.

Definition at line 2208 of file statistics.hh.

◆ str()

template<class Stat >
std::string Stats::ScalarProxyNode< Stat >::str ( ) const
inlinevirtual

Implements Stats::Node.

Definition at line 2217 of file statistics.hh.

References Stats::ScalarProxyNode< Stat >::proxy.

◆ total()

template<class Stat >
Result Stats::ScalarProxyNode< Stat >::total ( ) const
inlinevirtual

Return the total of the result vector.

Returns
The total of the result vector.

Implements Stats::Node.

Definition at line 2202 of file statistics.hh.

References Stats::ScalarProxyNode< Stat >::proxy.

Member Data Documentation

◆ proxy

template<class Stat >
const ScalarProxy<Stat> Stats::ScalarProxyNode< Stat >::proxy
private

◆ vresult

template<class Stat >
VResult Stats::ScalarProxyNode< Stat >::vresult
mutableprivate

Definition at line 2187 of file statistics.hh.

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


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

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