gem5  v21.1.0.2
Public Member Functions | Public Attributes | List of all members
gem5::statistics::SumNode< Op > Class Template Reference

#include <statistics.hh>

Inheritance diagram for gem5::statistics::SumNode< Op >:
gem5::statistics::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 gem5::statistics::Node
virtual ~Node ()
 

Public Attributes

NodePtr l
 
VResult vresult
 

Detailed Description

template<class Op>
class gem5::statistics::SumNode< Op >

Definition at line 1861 of file statistics.hh.

Constructor & Destructor Documentation

◆ SumNode()

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

Definition at line 1868 of file statistics.hh.

Member Function Documentation

◆ result()

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

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements gem5::statistics::Node.

Definition at line 1871 of file statistics.hh.

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

Referenced by gem5::statistics::SumNode< Op >::total().

◆ size()

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

Definition at line 1902 of file statistics.hh.

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

◆ str()

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

Implements gem5::statistics::Node.

Definition at line 1905 of file statistics.hh.

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

◆ total()

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

Return the total of the result vector.

Returns
The total of the result vector.

Implements gem5::statistics::Node.

Definition at line 1887 of file statistics.hh.

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

Member Data Documentation

◆ l

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

◆ vresult

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

Definition at line 1865 of file statistics.hh.

Referenced by gem5::statistics::SumNode< Op >::result().


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

Generated on Tue Sep 21 2021 12:32:31 for gem5 by doxygen 1.8.17