The Sparta Modeling Framework
Loading...
Searching...
No Matches
sparta::statistics::ReportStatisticsAggregator Class Reference

This class is a source of statistics values used by SPARTA simulators. It takes a sparta::Report object and internally creates an archive tree that describes the report's statistics hierarchy. More...

#include <ReportStatisticsAggregator.hpp>

Inheritance diagram for sparta::statistics::ReportStatisticsAggregator:
Collaboration diagram for sparta::statistics::ReportStatisticsAggregator:

Public Member Functions

 ReportStatisticsAggregator (const Report &r)
 
void initialize () override
 
const std::vector< const StatisticInstance * > & getAggregatedSIs () const
 
const std::vector< std::string > & getStatInstLocations () const
 
std::shared_ptr< RootArchiveNodegetRoot ()
 
const std::vector< double > & readFromSource () override
 
- Public Member Functions inherited from sparta::statistics::ArchiveStream
void setPath (const std::string &path)
 
void setSubpath (const std::string &subpath)
 
const std::string & getPath () const
 
const std::string & getSubpath () const
 

Detailed Description

This class is a source of statistics values used by SPARTA simulators. It takes a sparta::Report object and internally creates an archive tree that describes the report's statistics hierarchy.

Definition at line 20 of file ReportStatisticsAggregator.hpp.

Constructor & Destructor Documentation

◆ ReportStatisticsAggregator()

sparta::statistics::ReportStatisticsAggregator::ReportStatisticsAggregator ( const Report &  r)
inlineexplicit

Definition at line 23 of file ReportStatisticsAggregator.hpp.

Member Function Documentation

◆ getAggregatedSIs()

const std::vector< const StatisticInstance * > & sparta::statistics::ReportStatisticsAggregator::getAggregatedSIs ( ) const
inline

Definition at line 34 of file ReportStatisticsAggregator.hpp.

◆ getRoot()

std::shared_ptr< RootArchiveNode > sparta::statistics::ReportStatisticsAggregator::getRoot ( )
inline

Definition at line 47 of file ReportStatisticsAggregator.hpp.

◆ getStatInstLocations()

const std::vector< std::string > & sparta::statistics::ReportStatisticsAggregator::getStatInstLocations ( ) const
inline

Definition at line 43 of file ReportStatisticsAggregator.hpp.

◆ initialize()

void sparta::statistics::ReportStatisticsAggregator::initialize ( )
overridevirtual

◆ readFromSource()

const std::vector< double > & sparta::statistics::ReportStatisticsAggregator::readFromSource ( )
inlineoverridevirtual

Implements sparta::statistics::ArchiveSource.

Definition at line 57 of file ReportStatisticsAggregator.hpp.


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