gem5  v20.0.0.2
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
Stats::ScalarStatNode Class Reference

#include <statistics.hh>

Inheritance diagram for Stats::ScalarStatNode:
Stats::Node

Public Member Functions

 ScalarStatNode (const ScalarInfo *d)
 
const VResultresult () const
 Return the result vector of this subtree. More...
 
Result total () const
 Return the total of the result vector. More...
 
size_type size () const
 Return the number of nodes in the subtree starting at this node. More...
 
std::string str () const
 
- Public Member Functions inherited from Stats::Node
virtual ~Node ()
 

Private Attributes

const ScalarInfodata
 
VResult vresult
 

Detailed Description

Definition at line 2128 of file statistics.hh.

Constructor & Destructor Documentation

◆ ScalarStatNode()

Stats::ScalarStatNode::ScalarStatNode ( const ScalarInfo d)
inline

Definition at line 2135 of file statistics.hh.

Member Function Documentation

◆ result()

const VResult& Stats::ScalarStatNode::result ( ) const
inlinevirtual

Return the result vector of this subtree.

Returns
The result vector of this subtree.

Implements Stats::Node.

Definition at line 2138 of file statistics.hh.

References Stats::ScalarInfo::result().

◆ size()

size_type Stats::ScalarStatNode::size ( ) const
inlinevirtual

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

Returns
the number of nodes in this subtree.

Implements Stats::Node.

Definition at line 2146 of file statistics.hh.

◆ str()

std::string Stats::ScalarStatNode::str ( ) const
inlinevirtual

Implements Stats::Node.

Definition at line 2151 of file statistics.hh.

References Stats::Info::name.

◆ total()

Result Stats::ScalarStatNode::total ( ) const
inlinevirtual

Return the total of the result vector.

Returns
The total of the result vector.

Implements Stats::Node.

Definition at line 2144 of file statistics.hh.

References Stats::ScalarInfo::result().

Member Data Documentation

◆ data

const ScalarInfo* Stats::ScalarStatNode::data
private

Definition at line 2131 of file statistics.hh.

◆ vresult

VResult Stats::ScalarStatNode::vresult
mutableprivate

Definition at line 2132 of file statistics.hh.


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

Generated on Mon Jun 8 2020 15:46:04 for gem5 by doxygen 1.8.13