gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
 

Detailed Description

Base class for formula statistic node.

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

Definition at line 2070 of file statistics.hh.

Member Function Documentation

virtual const VResult& Stats::Node::result ( ) const
pure virtual
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::FormulaNode, Stats::SumNode< Op >, Stats::BinaryNode< Op >, Stats::UnaryNode< Op >, Stats::ConstVectorNode< T >, Stats::ConstNode< T >, Stats::VectorStatNode, Stats::ScalarProxyNode< Stat >, and Stats::ScalarStatNode.

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

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

Generated on Fri Jun 9 2017 13:04:39 for gem5 by doxygen 1.8.6