gem5  v20.1.0.0
Public Member Functions | List of all members
Stats::Node Class Referenceabstract

Base class for formula statistic node. More...

#include <statistics.hh>

Inheritance diagram for Stats::Node:
Stats::BinaryNode< Op > Stats::ConstNode< T > Stats::ConstVectorNode< T > Stats::FormulaNode Stats::ScalarProxyNode< Stat > Stats::ScalarStatNode Stats::SumNode< Op > Stats::UnaryNode< Op > Stats::VectorStatNode

Public Member Functions

virtual size_type size () const =0
 Return the number of nodes in the subtree starting at this node. More...
 
virtual const VResultresult () const =0
 Return the result vector of this subtree. More...
 
virtual Result total () const =0
 Return the total of the result vector. More...
 
virtual std::string str () const =0
 
virtual ~Node ()
 

Detailed Description

Base class for formula statistic node.

These nodes are used to build a tree that represents the formula.

Definition at line 2126 of file statistics.hh.

Constructor & Destructor Documentation

◆ ~Node()

virtual Stats::Node::~Node ( )
inlinevirtual

Definition at line 2150 of file statistics.hh.

Member Function Documentation

◆ result()

virtual const VResult& Stats::Node::result ( ) const
pure virtual

◆ size()

virtual size_type Stats::Node::size ( ) const
pure virtual

Return the number of nodes in the subtree starting at this node.

Returns
the number of nodes in this subtree.

Implemented in Stats::BinaryNode< Op >, Stats::FormulaNode, Stats::SumNode< Op >, Stats::UnaryNode< Op >, Stats::ConstVectorNode< T >, Stats::ConstNode< T >, Stats::VectorStatNode, Stats::ScalarProxyNode< Stat >, and Stats::ScalarStatNode.

◆ str()

virtual std::string Stats::Node::str ( ) const
pure virtual

◆ total()

virtual Result Stats::Node::total ( ) const
pure virtual

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