gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
Stats::UnaryNode< Op > Class Template Reference

#include <statistics.hh>

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

Public Member Functions

 UnaryNode (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::UnaryNode< Op >

Definition at line 2325 of file statistics.hh.

Constructor & Destructor Documentation

◆ UnaryNode()

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

Definition at line 2332 of file statistics.hh.

Member Function Documentation

◆ result()

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

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements Stats::Node.

Definition at line 2335 of file statistics.hh.

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

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

◆ size()

template<class Op >
size_type Stats::UnaryNode< 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 2360 of file statistics.hh.

References Stats::UnaryNode< Op >::l.

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

◆ str()

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

Implements Stats::Node.

Definition at line 2363 of file statistics.hh.

References Stats::UnaryNode< Op >::l.

◆ total()

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

Return the total of the result vector.

Returns
The total of the result vector.

Implements Stats::Node.

Definition at line 2351 of file statistics.hh.

References ArmISA::i, Stats::UnaryNode< Op >::result(), and Stats::UnaryNode< Op >::size().

Member Data Documentation

◆ l

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

◆ vresult

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

Definition at line 2329 of file statistics.hh.

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