gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
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. More...
 
Result total () const override
 Return the total of the result vector. More...
 
size_type size () const override
 Return the number of nodes in the subtree starting at this node. More...
 
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 1764 of file statistics.hh.

Constructor & Destructor Documentation

◆ BinaryNode()

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

Definition at line 1772 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 1839 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 1807 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(), and gem5::PowerISA::vec.

Member Data Documentation

◆ l

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

◆ r

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

◆ vresult

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

Definition at line 1769 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 Sep 21 2021 12:32:28 for gem5 by doxygen 1.8.17