gem5 v24.0.0.0
Loading...
Searching...
No Matches
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.
 
const VResultresult () const
 Return the result vector of this subtree.
 
Result total () const
 Return the total of the result vector.
 
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 2630 of file statistics.hh.

Constructor & Destructor Documentation

◆ FormulaNode()

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

Definition at line 2637 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 2640 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 2639 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 2643 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 2641 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 2633 of file statistics.hh.

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

◆ vec

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

Definition at line 2634 of file statistics.hh.

Referenced by result().


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

Generated on Tue Jun 18 2024 16:24:23 for gem5 by doxygen 1.11.0