gem5 v24.0.0.0
|
#include <cprintf.hh>
Public Member Functions | |
Print (std::ostream &stream, const std::string &format) | |
Print (std::ostream &stream, const char *format) | |
~Print () | |
int | getNumber (int data) |
template<typename T > | |
int | getNumber (const T &data) |
template<typename T > | |
void | addArg (const T &data) |
void | endArgs () |
Protected Member Functions | |
void | process () |
void | processFlag () |
Protected Attributes | |
std::ostream & | stream |
const char * | format |
const char * | ptr |
bool | cont |
std::ios::fmtflags | savedFlags |
char | savedFill |
int | savedPrecision |
int | savedWidth |
Format | fmt |
Definition at line 45 of file cprintf.hh.
gem5::cp::Print::Print | ( | std::ostream & | stream, |
const std::string & | format ) |
Definition at line 43 of file cprintf.cc.
References savedFill, savedFlags, savedPrecision, savedWidth, and stream.
gem5::cp::Print::Print | ( | std::ostream & | stream, |
const char * | format ) |
Definition at line 52 of file cprintf.cc.
References savedFill, savedFlags, savedPrecision, savedWidth, and stream.
gem5::cp::Print::~Print | ( | ) |
Definition at line 61 of file cprintf.cc.
|
inline |
Definition at line 82 of file cprintf.hh.
References gem5::cp::Format::Character, cont, data, gem5::cp::Format::Floating, fmt, gem5::cp::Format::format, gem5::cp::formatChar(), gem5::cp::formatFloat(), gem5::cp::formatInteger(), gem5::cp::formatString(), getNumber(), gem5::cp::Format::getPrecision, gem5::cp::Format::getWidth, gem5::cp::Format::Integer, gem5::cp::Format::precision, process(), stream, gem5::cp::Format::String, and gem5::cp::Format::width.
Referenced by gem5::ccprintf().
void gem5::cp::Print::endArgs | ( | ) |
Definition at line 280 of file cprintf.cc.
References gem5::ArmISA::len, ptr, savedFill, savedFlags, savedPrecision, savedWidth, and stream.
Referenced by gem5::ccprintf().
|
inline |
Definition at line 75 of file cprintf.hh.
|
inline |
|
protected |
Definition at line 66 of file cprintf.cc.
References gem5::cp::Format::clear(), fmt, gem5::ArmISA::len, processFlag(), ptr, and stream.
Referenced by addArg().
|
protected |
Definition at line 103 of file cprintf.cc.
References gem5::cp::Format::alternateForm, gem5::cp::Format::base, gem5::cp::Format::Best, gem5::cp::Format::blankSpace, gem5::cp::Format::Character, gem5::cp::Format::fillZero, gem5::cp::Format::Fixed, gem5::cp::Format::floatFormat, gem5::cp::Format::Floating, gem5::cp::Format::flushLeft, fmt, gem5::cp::Format::format, gem5::cp::Format::getPrecision, gem5::cp::Format::getWidth, gem5::cp::Format::Hex, gem5::cp::Format::Integer, gem5::cp::Format::Oct, gem5::cp::Format::precision, gem5::cp::Format::printSign, ptr, gem5::cp::Format::Scientific, stream, gem5::cp::Format::String, gem5::cp::Format::uppercase, and gem5::cp::Format::width.
Referenced by process().
|
protected |
Definition at line 51 of file cprintf.hh.
Referenced by addArg().
|
protected |
Definition at line 58 of file cprintf.hh.
Referenced by addArg(), process(), and processFlag().
|
protected |
Definition at line 49 of file cprintf.hh.
|
protected |
Definition at line 50 of file cprintf.hh.
Referenced by endArgs(), process(), and processFlag().
|
protected |
Definition at line 54 of file cprintf.hh.
|
protected |
Definition at line 53 of file cprintf.hh.
|
protected |
Definition at line 55 of file cprintf.hh.
|
protected |
Definition at line 56 of file cprintf.hh.
|
protected |
Definition at line 48 of file cprintf.hh.
Referenced by addArg(), endArgs(), Print(), Print(), process(), and processFlag().