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

#include <statistics.hh>

Inheritance diagram for Stats::BinaryNode< Op >:
Stats::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 Stats::Node
virtual ~Node ()
 

Public Attributes

NodePtr l
 
NodePtr r
 
VResult vresult
 

Detailed Description

template<class Op>
class Stats::BinaryNode< Op >

Definition at line 2345 of file statistics.hh.

Constructor & Destructor Documentation

◆ BinaryNode()

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

Definition at line 2353 of file statistics.hh.

Member Function Documentation

◆ result()

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

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements Stats::Node.

Definition at line 2356 of file statistics.hh.

References ArmISA::i, and X86ISA::op.

◆ size()

template<class Op >
size_type Stats::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 Stats::Node.

Definition at line 2420 of file statistics.hh.

References ArmISA::rs.

◆ str()

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

Implements Stats::Node.

Definition at line 2435 of file statistics.hh.

References csprintf().

◆ total()

template<class Op >
Result Stats::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 Stats::Node.

Definition at line 2388 of file statistics.hh.

References ArmISA::i, X86ISA::op, and Stats::total.

Member Data Documentation

◆ l

template<class Op >
NodePtr Stats::BinaryNode< Op >::l

Definition at line 2348 of file statistics.hh.

◆ r

template<class Op >
NodePtr Stats::BinaryNode< Op >::r

Definition at line 2349 of file statistics.hh.

◆ vresult

template<class Op >
VResult Stats::BinaryNode< Op >::vresult
mutable

Definition at line 2350 of file statistics.hh.


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

Generated on Fri Feb 28 2020 16:27:25 for gem5 by doxygen 1.8.13