gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::statistics::Text Class Reference

#include <text.hh>

Inheritance diagram for gem5::statistics::Text:
gem5::statistics::Output

Public Member Functions

 Text ()
 
 Text (std::ostream &stream)
 
 Text (const std::string &file)
 
 ~Text ()
 
void open (std::ostream &stream)
 
void open (const std::string &file)
 
std::string statName (const std::string &name) const
 
void visit (const ScalarInfo &info) override
 
void visit (const VectorInfo &info) override
 
void visit (const DistInfo &info) override
 
void visit (const VectorDistInfo &info) override
 
void visit (const Vector2dInfo &info) override
 
void visit (const FormulaInfo &info) override
 
void visit (const SparseHistInfo &info) override
 
void beginGroup (const char *name) override
 
void endGroup () override
 
bool valid () const override
 
void begin () override
 
void end () override
 
- Public Member Functions inherited from gem5::statistics::Output
virtual ~Output ()
 

Public Attributes

bool enableUnits
 
bool descriptions
 
bool spaces
 

Protected Member Functions

bool noOutput (const Info &info)
 

Protected Attributes

bool mystream
 
std::ostream * stream
 
std::stack< std::string > path
 

Detailed Description

Definition at line 59 of file text.hh.

Constructor & Destructor Documentation

◆ Text() [1/3]

gem5::statistics::Text::Text ( )

Definition at line 75 of file text.cc.

◆ Text() [2/3]

gem5::statistics::Text::Text ( std::ostream & stream)

Definition at line 80 of file text.cc.

References open(), and stream.

◆ Text() [3/3]

gem5::statistics::Text::Text ( const std::string & file)

Definition at line 85 of file text.cc.

References open().

◆ ~Text()

gem5::statistics::Text::~Text ( )

Definition at line 91 of file text.cc.

References mystream, and stream.

Member Function Documentation

◆ begin()

void gem5::statistics::Text::begin ( )
overridevirtual

Implements gem5::statistics::Output.

Definition at line 130 of file text.cc.

References gem5::ccprintf(), and stream.

◆ beginGroup()

void gem5::statistics::Text::beginGroup ( const char * name)
overridevirtual

Implements gem5::statistics::Output.

Definition at line 152 of file text.cc.

References gem5::csprintf(), name(), and path.

◆ end()

void gem5::statistics::Text::end ( )
overridevirtual

Implements gem5::statistics::Output.

Definition at line 136 of file text.cc.

References gem5::ccprintf(), and stream.

◆ endGroup()

void gem5::statistics::Text::endGroup ( )
overridevirtual

Implements gem5::statistics::Output.

Definition at line 162 of file text.cc.

References path.

◆ noOutput()

bool gem5::statistics::Text::noOutput ( const Info & info)
protected

◆ open() [1/2]

void gem5::statistics::Text::open ( const std::string & file)

Definition at line 112 of file text.cc.

References fatal, mystream, panic, stream, and valid().

◆ open() [2/2]

void gem5::statistics::Text::open ( std::ostream & stream)

Definition at line 100 of file text.cc.

References fatal, mystream, panic, stream, and valid().

Referenced by gem5::statistics::initText(), Text(), and Text().

◆ statName()

std::string gem5::statistics::Text::statName ( const std::string & name) const

◆ valid()

bool gem5::statistics::Text::valid ( ) const
overridevirtual

Implements gem5::statistics::Output.

Definition at line 124 of file text.cc.

References stream.

Referenced by open(), and open().

◆ visit() [1/7]

void gem5::statistics::Text::visit ( const DistInfo & info)
overridevirtual

Implements gem5::statistics::Output.

Definition at line 708 of file text.cc.

References noOutput(), and stream.

◆ visit() [2/7]

void gem5::statistics::Text::visit ( const FormulaInfo & info)
overridevirtual

Implements gem5::statistics::Output.

Definition at line 730 of file text.cc.

References visit().

◆ visit() [3/7]

◆ visit() [4/7]

void gem5::statistics::Text::visit ( const SparseHistInfo & info)
overridevirtual

Implements gem5::statistics::Output.

Definition at line 794 of file text.cc.

References noOutput(), and stream.

◆ visit() [5/7]

◆ visit() [6/7]

void gem5::statistics::Text::visit ( const VectorDistInfo & info)
overridevirtual

◆ visit() [7/7]

Member Data Documentation

◆ descriptions

bool gem5::statistics::Text::descriptions

◆ enableUnits

bool gem5::statistics::Text::enableUnits

◆ mystream

bool gem5::statistics::Text::mystream
protected

Definition at line 62 of file text.hh.

Referenced by open(), open(), and ~Text().

◆ path

std::stack<std::string> gem5::statistics::Text::path
protected

Definition at line 66 of file text.hh.

Referenced by beginGroup(), endGroup(), and statName().

◆ spaces

bool gem5::statistics::Text::spaces

◆ stream

std::ostream* gem5::statistics::Text::stream
protected

Definition at line 63 of file text.hh.

Referenced by begin(), end(), open(), open(), Text(), valid(), visit(), visit(), visit(), visit(), visit(), visit(), and ~Text().


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

Generated on Tue Jun 18 2024 16:24:24 for gem5 by doxygen 1.11.0