gem5  v22.0.0.1
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
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 60 of file text.hh.

Constructor & Destructor Documentation

◆ Text() [1/3]

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

Definition at line 76 of file text.cc.

◆ Text() [2/3]

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

Definition at line 81 of file text.cc.

References open(), and stream.

◆ Text() [3/3]

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

Definition at line 86 of file text.cc.

References open().

◆ ~Text()

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

Definition at line 92 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 131 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 153 of file text.cc.

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

◆ end()

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

Implements gem5::statistics::Output.

Definition at line 137 of file text.cc.

References gem5::ccprintf(), and stream.

◆ endGroup()

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

Implements gem5::statistics::Output.

Definition at line 163 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 113 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 101 of file text.cc.

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

Referenced by gem5::statistics::initText(), 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 125 of file text.cc.

References stream.

Referenced by open().

◆ visit() [1/7]

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

Implements gem5::statistics::Output.

Definition at line 709 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 731 of file text.cc.

References visit().

◆ visit() [3/7]

void gem5::statistics::Text::visit ( const ScalarInfo info)
overridevirtual

◆ visit() [4/7]

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

Implements gem5::statistics::Output.

Definition at line 795 of file text.cc.

References noOutput(), and stream.

◆ visit() [5/7]

void gem5::statistics::Text::visit ( const Vector2dInfo info)
overridevirtual

◆ visit() [6/7]

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

◆ visit() [7/7]

void gem5::statistics::Text::visit ( const VectorInfo info)
overridevirtual

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 63 of file text.hh.

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

◆ path

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

Definition at line 67 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 64 of file text.hh.

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


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

Generated on Sat Jun 18 2022 08:14:38 for gem5 by doxygen 1.8.17