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

#include <statistics.hh>

Inheritance diagram for Stats::SumNode< Op >:
Stats::Node

Public Member Functions

 SumNode (NodePtr &p)
 
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
 
VResult vresult
 

Detailed Description

template<class Op>
class Stats::SumNode< Op >

Definition at line 2409 of file statistics.hh.

Constructor & Destructor Documentation

template<class Op >
Stats::SumNode< Op >::SumNode ( NodePtr p)
inline

Definition at line 2416 of file statistics.hh.

Member Function Documentation

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

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements Stats::Node.

Definition at line 2419 of file statistics.hh.

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

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

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

Definition at line 2450 of file statistics.hh.

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

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

Implements Stats::Node.

Definition at line 2453 of file statistics.hh.

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

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

Return the total of the result vector.

Returns
The total of the result vector.

Implements Stats::Node.

Definition at line 2435 of file statistics.hh.

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

Member Data Documentation

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

Definition at line 2413 of file statistics.hh.

Referenced by Stats::SumNode< 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