gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::statistics::BinaryNode< Op > Class Template Reference

#include <statistics.hh>

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

Public Member Functions

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

Public Attributes

NodePtr l
 
NodePtr r
 
VResult vresult
 

Detailed Description

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

Definition at line 1766 of file statistics.hh.

Constructor & Destructor Documentation

◆ BinaryNode()

template<class Op >
gem5::statistics::BinaryNode< Op >::BinaryNode ( NodePtr & a,
NodePtr & b )
inline

Definition at line 1774 of file statistics.hh.

Member Function Documentation

◆ result()

template<class Op >
const VResult & gem5::statistics::BinaryNode< Op >::result ( ) const
inlineoverridevirtual

◆ size()

template<class Op >
size_type gem5::statistics::BinaryNode< Op >::size ( ) const
inlineoverridevirtual

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 1841 of file statistics.hh.

References gem5::statistics::BinaryNode< Op >::l, gem5::statistics::BinaryNode< Op >::r, and gem5::ArmISA::rs.

Referenced by gem5::statistics::BinaryNode< Op >::result(), and gem5::statistics::BinaryNode< Op >::total().

◆ str()

template<class Op >
std::string gem5::statistics::BinaryNode< Op >::str ( ) const
inlineoverridevirtual

◆ total()

template<class Op >
Result gem5::statistics::BinaryNode< Op >::total ( ) const
inlineoverridevirtual

Return the total of the result vector.

Returns
The total of the result vector.

If vectors are the same divide their sums (x0+x1)/(y0+y1)

Otherwise divide each item by the divisor

Implements gem5::statistics::Node.

Definition at line 1809 of file statistics.hh.

References gem5::ArmISA::i, gem5::statistics::BinaryNode< Op >::l, gem5::X86ISA::op, gem5::statistics::BinaryNode< Op >::r, gem5::statistics::BinaryNode< Op >::result(), gem5::statistics::BinaryNode< Op >::size(), gem5::statistics::BinaryNode< Op >::total(), and gem5::PowerISA::vec.

Referenced by gem5::statistics::BinaryNode< Op >::total().

Member Data Documentation

◆ l

◆ r

◆ vresult

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

Definition at line 1771 of file statistics.hh.

Referenced by gem5::statistics::BinaryNode< Op >::result().


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

Generated on Tue Jun 18 2024 16:24:23 for gem5 by doxygen 1.11.0