gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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
 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 Attributes

NodePtr l
 
NodePtr r
 
VResult vresult
 

Detailed Description

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

Definition at line 2312 of file statistics.hh.

Constructor & Destructor Documentation

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

Definition at line 2320 of file statistics.hh.

Member Function Documentation

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

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements Stats::Node.

Definition at line 2323 of file statistics.hh.

References ArmISA::i, Stats::BinaryNode< Op >::l, X86ISA::op, Stats::BinaryNode< Op >::r, Stats::BinaryNode< Op >::size(), and Stats::BinaryNode< Op >::vresult.

Referenced by Stats::BinaryNode< Op >::total().

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

Definition at line 2387 of file statistics.hh.

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

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

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

Implements Stats::Node.

Definition at line 2402 of file statistics.hh.

References csprintf(), Stats::BinaryNode< Op >::l, and Stats::BinaryNode< Op >::r.

template<class Op >
Result Stats::BinaryNode< Op >::total ( ) const
inlinevirtual

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

References ArmISA::i, Stats::BinaryNode< Op >::l, X86ISA::op, Stats::BinaryNode< Op >::r, Stats::BinaryNode< Op >::result(), and Stats::BinaryNode< Op >::size().

Member Data Documentation

template<class Op >
NodePtr Stats::BinaryNode< Op >::l
template<class Op >
NodePtr Stats::BinaryNode< Op >::r
template<class Op >
VResult Stats::BinaryNode< Op >::vresult
mutable

Definition at line 2317 of file statistics.hh.

Referenced by Stats::BinaryNode< Op >::result().


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

Generated on Fri Jun 9 2017 13:04:39 for gem5 by doxygen 1.8.6