gem5
v20.1.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. More... | |
virtual const VResult & | result () 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 () |
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.
|
inlinevirtual |
Definition at line 2150 of file statistics.hh.
|
pure virtual |
Return the result vector of 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.
|
pure virtual |
Return the number of nodes in the subtree starting at this node.
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.
|
pure virtual |
|
pure virtual |
Return the total of the result vector.
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.