gem5  v20.1.0.0
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Stats::Text Class Reference

#include <text.hh>

Inheritance diagram for Stats::Text:
Stats::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 Stats::Output
virtual ~Output ()
 

Public Attributes

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

Constructor & Destructor Documentation

◆ Text() [1/3]

Stats::Text::Text ( )

Definition at line 97 of file text.cc.

◆ Text() [2/3]

Stats::Text::Text ( std::ostream &  stream)

Definition at line 102 of file text.cc.

References open(), and stream.

◆ Text() [3/3]

Stats::Text::Text ( const std::string &  file)

Definition at line 107 of file text.cc.

References open().

◆ ~Text()

Stats::Text::~Text ( )

Definition at line 113 of file text.cc.

References mystream, and stream.

Member Function Documentation

◆ begin()

void Stats::Text::begin ( )
overridevirtual

Implements Stats::Output.

Definition at line 152 of file text.cc.

References ccprintf(), and stream.

◆ beginGroup()

void Stats::Text::beginGroup ( const char *  name)
overridevirtual

Implements Stats::Output.

Definition at line 174 of file text.cc.

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

◆ end()

void Stats::Text::end ( )
overridevirtual

Implements Stats::Output.

Definition at line 158 of file text.cc.

References ccprintf(), and stream.

◆ endGroup()

void Stats::Text::endGroup ( )
overridevirtual

Implements Stats::Output.

Definition at line 184 of file text.cc.

References path.

◆ noOutput()

bool Stats::Text::noOutput ( const Info info)
protected

Definition at line 191 of file text.cc.

References Stats::display, Stats::Info::flags, Flags< T >::isSet(), Stats::Info::prereq, and Stats::Info::zero().

Referenced by visit().

◆ open() [1/2]

void Stats::Text::open ( const std::string &  file)

Definition at line 134 of file text.cc.

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

◆ open() [2/2]

void Stats::Text::open ( std::ostream &  stream)

Definition at line 122 of file text.cc.

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

Referenced by Stats::initText(), and Text().

◆ statName()

std::string Stats::Text::statName ( const std::string &  name) const

◆ valid()

bool Stats::Text::valid ( ) const
overridevirtual

Implements Stats::Output.

Definition at line 146 of file text.cc.

References stream.

Referenced by open().

◆ visit() [1/7]

void Stats::Text::visit ( const DistInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 708 of file text.cc.

References noOutput(), and stream.

◆ visit() [2/7]

void Stats::Text::visit ( const FormulaInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 730 of file text.cc.

References visit().

◆ visit() [3/7]

void Stats::Text::visit ( const ScalarInfo info)
overridevirtual

◆ visit() [4/7]

void Stats::Text::visit ( const SparseHistInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 807 of file text.cc.

References noOutput(), and stream.

◆ visit() [5/7]

void Stats::Text::visit ( const Vector2dInfo info)
overridevirtual

◆ visit() [6/7]

void Stats::Text::visit ( const VectorDistInfo info)
overridevirtual

Implements Stats::Output.

Definition at line 718 of file text.cc.

References ArmISA::i, noOutput(), Stats::VectorDistInfo::size(), and stream.

◆ visit() [7/7]

void Stats::Text::visit ( const VectorInfo info)
overridevirtual

Member Data Documentation

◆ descriptions

bool Stats::Text::descriptions

◆ mystream

bool Stats::Text::mystream
protected

Definition at line 57 of file text.hh.

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

◆ path

std::stack<std::string> Stats::Text::path
protected

Definition at line 61 of file text.hh.

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

◆ spaces

bool Stats::Text::spaces

◆ stream

std::ostream* Stats::Text::stream
protected

Definition at line 58 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 Wed Sep 30 2020 14:03:12 for gem5 by doxygen 1.8.17