gem5  v21.0.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Stats::ConstNode< T > Class Template Reference

#include <statistics.hh>

Inheritance diagram for Stats::ConstNode< T >:
Stats::Node

Public Member Functions

 ConstNode (T s)
 
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

VResult vresult
 

Detailed Description

template<class T>
class Stats::ConstNode< T >

Definition at line 1639 of file statistics.hh.

Constructor & Destructor Documentation

◆ ConstNode()

template<class T >
Stats::ConstNode< T >::ConstNode ( s)
inline

Definition at line 1645 of file statistics.hh.

Member Function Documentation

◆ result()

template<class T >
const VResult& Stats::ConstNode< T >::result ( ) const
inlinevirtual

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements Stats::Node.

Definition at line 1646 of file statistics.hh.

References Stats::ConstNode< T >::vresult.

◆ size()

template<class T >
size_type Stats::ConstNode< T >::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 1648 of file statistics.hh.

◆ str()

template<class T >
std::string Stats::ConstNode< T >::str ( ) const
inlinevirtual

Implements Stats::Node.

Definition at line 1649 of file statistics.hh.

References sc_dt::to_string(), and Stats::ConstNode< T >::vresult.

◆ total()

template<class T >
Result Stats::ConstNode< T >::total ( ) const
inlinevirtual

Return the total of the result vector.

Returns
The total of the result vector.

Implements Stats::Node.

Definition at line 1647 of file statistics.hh.

References Stats::ConstNode< T >::vresult.

Member Data Documentation

◆ vresult

template<class T >
VResult Stats::ConstNode< T >::vresult
private

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

Generated on Tue Mar 23 2021 19:42:06 for gem5 by doxygen 1.8.17