gem5 v25.0.0.1
Loading...
Searching...
No Matches
gem5::statistics::SumNode< Op > Class Template Reference

#include <statistics.hh>

Inheritance diagram for gem5::statistics::SumNode< Op >:
gem5::statistics::Node

Public Member Functions

 SumNode (NodePtr &p)
const VResultresult () const
 Return the result vector of this subtree.
Result total () const
 Return the total of the result vector.
size_type size () const
 Return the number of nodes in the subtree starting at this node.
std::string str () const
Public Member Functions inherited from gem5::statistics::Node
virtual ~Node ()

Public Attributes

NodePtr l
VResult vresult

Detailed Description

template<class Op>
class gem5::statistics::SumNode< Op >

Definition at line 1863 of file statistics.hh.

Constructor & Destructor Documentation

◆ SumNode()

template<class Op>
gem5::statistics::SumNode< Op >::SumNode ( NodePtr & p)
inline

Definition at line 1870 of file statistics.hh.

References l, gem5::MipsISA::p, and vresult.

Member Function Documentation

◆ result()

template<class Op>
const VResult & gem5::statistics::SumNode< Op >::result ( ) const
inlinevirtual

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements gem5::statistics::Node.

Definition at line 1873 of file statistics.hh.

References gem5::ArmISA::i, l, gem5::X86ISA::op, size(), and vresult.

Referenced by total().

◆ size()

template<class Op>
size_type gem5::statistics::SumNode< Op >::size ( ) const
inlinevirtual

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

Returns
the number of nodes in this subtree.

Implements gem5::statistics::Node.

Definition at line 1904 of file statistics.hh.

Referenced by result(), and total().

◆ str()

template<class Op>
std::string gem5::statistics::SumNode< Op >::str ( ) const
inlinevirtual

Implements gem5::statistics::Node.

Definition at line 1907 of file statistics.hh.

References gem5::csprintf(), and l.

◆ total()

template<class Op>
Result gem5::statistics::SumNode< Op >::total ( ) const
inlinevirtual

Return the total of the result vector.

Returns
The total of the result vector.

Implements gem5::statistics::Node.

Definition at line 1889 of file statistics.hh.

References gem5::ArmISA::i, l, gem5::X86ISA::op, result(), and size().

Member Data Documentation

◆ l

template<class Op>
NodePtr gem5::statistics::SumNode< Op >::l

Definition at line 1866 of file statistics.hh.

Referenced by result(), str(), SumNode(), and total().

◆ vresult

template<class Op>
VResult gem5::statistics::SumNode< Op >::vresult
mutable

Definition at line 1867 of file statistics.hh.

Referenced by result(), and SumNode().


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

Generated on Sat Oct 18 2025 08:07:03 for gem5 by doxygen 1.14.0