gem5  v20.1.0.0
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 Member Functions inherited from Stats::Node
virtual ~Node ()
 

Public Attributes

NodePtr l
 
VResult vresult
 

Detailed Description

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

Definition at line 2467 of file statistics.hh.

Constructor & Destructor Documentation

◆ SumNode()

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

Definition at line 2474 of file statistics.hh.

Member Function Documentation

◆ result()

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 2477 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().

◆ size()

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

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

◆ str()

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

Implements Stats::Node.

Definition at line 2511 of file statistics.hh.

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

◆ total()

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 2493 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

◆ l

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

◆ vresult

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

Definition at line 2471 of file statistics.hh.

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


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

Generated on Wed Sep 30 2020 14:03:12 for gem5 by doxygen 1.8.17