gem5 v24.0.0.0
|
Base class for formula statistic node. More...
#include <statistics.hh>
Public Member Functions | |
virtual size_type | size () const =0 |
Return the number of nodes in the subtree starting at this node. | |
virtual const VResult & | result () const =0 |
Return the result vector of this subtree. | |
virtual Result | total () const =0 |
Return the total of the result vector. | |
virtual std::string | str () const =0 |
virtual | ~Node () |
Base class for formula statistic node.
These nodes are used to build a tree that represents the formula.
Definition at line 1522 of file statistics.hh.
|
inlinevirtual |
Definition at line 1546 of file statistics.hh.
|
pure virtual |
Return the result vector of this subtree.
Implemented in gem5::statistics::BinaryNode< Op >, gem5::statistics::ConstNode< T >, gem5::statistics::ConstVectorNode< T >, gem5::statistics::FormulaNode, gem5::statistics::ScalarProxyNode< Stat >, gem5::statistics::ScalarStatNode, gem5::statistics::SumNode< Op >, gem5::statistics::UnaryNode< Op >, and gem5::statistics::VectorStatNode.
|
pure virtual |
Return the number of nodes in the subtree starting at this node.
Implemented in gem5::statistics::BinaryNode< Op >, gem5::statistics::ConstNode< T >, gem5::statistics::ConstVectorNode< T >, gem5::statistics::FormulaNode, gem5::statistics::ScalarProxyNode< Stat >, gem5::statistics::ScalarStatNode, gem5::statistics::SumNode< Op >, gem5::statistics::UnaryNode< Op >, and gem5::statistics::VectorStatNode.
|
pure virtual |
Implemented in gem5::statistics::BinaryNode< Op >, gem5::statistics::ConstNode< T >, gem5::statistics::ConstVectorNode< T >, gem5::statistics::FormulaNode, gem5::statistics::ScalarProxyNode< Stat >, gem5::statistics::ScalarStatNode, gem5::statistics::SumNode< Op >, gem5::statistics::UnaryNode< Op >, and gem5::statistics::VectorStatNode.
|
pure virtual |
Return the total of the result vector.
Implemented in gem5::statistics::BinaryNode< Op >, gem5::statistics::ConstNode< T >, gem5::statistics::ConstVectorNode< T >, gem5::statistics::FormulaNode, gem5::statistics::ScalarProxyNode< Stat >, gem5::statistics::ScalarStatNode, gem5::statistics::SumNode< Op >, gem5::statistics::UnaryNode< Op >, and gem5::statistics::VectorStatNode.