gem5  v21.1.0.2
Public Member Functions | Private Attributes | List of all members
gem5::statistics::FormulaNode Class Reference

#include <statistics.hh>

Inheritance diagram for gem5::statistics::FormulaNode:
gem5::statistics::Node

Public Member Functions

 FormulaNode (const Formula &f)
 
size_type size () const
 Return the number of nodes in the subtree starting at this node. More...
 
const VResultresult () const
 Return the result vector of this subtree. More...
 
Result total () const
 Return the total of the result vector. More...
 
std::string str () const
 
- Public Member Functions inherited from gem5::statistics::Node
virtual ~Node ()
 

Private Attributes

const Formulaformula
 
VResult vec
 

Detailed Description

Definition at line 2628 of file statistics.hh.

Constructor & Destructor Documentation

◆ FormulaNode()

gem5::statistics::FormulaNode::FormulaNode ( const Formula f)
inline

Definition at line 2635 of file statistics.hh.

Member Function Documentation

◆ result()

const VResult& gem5::statistics::FormulaNode::result ( ) const
inlinevirtual

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements gem5::statistics::Node.

Definition at line 2638 of file statistics.hh.

References formula, gem5::statistics::Formula::result(), and vec.

◆ size()

size_type gem5::statistics::FormulaNode::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 2637 of file statistics.hh.

References formula, and gem5::statistics::Formula::size().

◆ str()

std::string gem5::statistics::FormulaNode::str ( ) const
inlinevirtual

Implements gem5::statistics::Node.

Definition at line 2641 of file statistics.hh.

References formula, and gem5::statistics::Formula::str().

◆ total()

Result gem5::statistics::FormulaNode::total ( ) const
inlinevirtual

Return the total of the result vector.

Returns
The total of the result vector.

Implements gem5::statistics::Node.

Definition at line 2639 of file statistics.hh.

References formula, and gem5::statistics::Formula::total().

Member Data Documentation

◆ formula

const Formula& gem5::statistics::FormulaNode::formula
private

Definition at line 2631 of file statistics.hh.

Referenced by result(), size(), str(), and total().

◆ vec

VResult gem5::statistics::FormulaNode::vec
mutableprivate

Definition at line 2632 of file statistics.hh.

Referenced by result().


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

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