|
gem5
v21.0.1.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 42 of file cprintf.hh.
| cp::Print::Print | ( | std::ostream & | stream, |
| const std::string & | format | ||
| ) |
Definition at line 40 of file cprintf.cc.
References savedFill, savedFlags, savedPrecision, savedWidth, and stream.
| cp::Print::Print | ( | std::ostream & | stream, |
| const char * | format | ||
| ) |
Definition at line 49 of file cprintf.cc.
References savedFill, savedFlags, savedPrecision, savedWidth, and stream.
| cp::Print::~Print | ( | ) |
Definition at line 58 of file cprintf.cc.
|
inline |
Definition at line 79 of file cprintf.hh.
References cp::Format::Character, cont, data, cp::Format::Floating, fmt, cp::Format::format, cp::formatChar(), cp::formatFloat(), cp::formatInteger(), cp::formatString(), getNumber(), cp::Format::getPrecision, cp::Format::getWidth, cp::Format::Integer, cp::Format::precision, process(), stream, cp::Format::String, and cp::Format::width.
Referenced by ccprintf().
| void cp::Print::endArgs | ( | ) |
Definition at line 277 of file cprintf.cc.
References ArmISA::len, ptr, savedFill, savedFlags, savedPrecision, savedWidth, and stream.
Referenced by ccprintf().
|
inline |
Definition at line 72 of file cprintf.hh.
|
inline |
|
protected |
Definition at line 63 of file cprintf.cc.
References cp::Format::clear(), fmt, ArmISA::len, processFlag(), ptr, and stream.
Referenced by addArg().
|
protected |
Definition at line 100 of file cprintf.cc.
References cp::Format::alternateForm, cp::Format::base, cp::Format::Best, cp::Format::blankSpace, cp::Format::Character, cp::Format::fillZero, cp::Format::Fixed, cp::Format::floatFormat, cp::Format::Floating, cp::Format::flushLeft, fmt, cp::Format::format, cp::Format::getPrecision, cp::Format::getWidth, cp::Format::Hex, cp::Format::Integer, M5_FALLTHROUGH, cp::Format::Oct, cp::Format::precision, cp::Format::printSign, ptr, cp::Format::Scientific, stream, cp::Format::String, cp::Format::uppercase, and cp::Format::width.
Referenced by process().
|
protected |
Definition at line 48 of file cprintf.hh.
Referenced by addArg().
|
protected |
Definition at line 55 of file cprintf.hh.
Referenced by addArg(), process(), and processFlag().
|
protected |
Definition at line 46 of file cprintf.hh.
|
protected |
Definition at line 47 of file cprintf.hh.
Referenced by endArgs(), process(), and processFlag().
|
protected |
Definition at line 51 of file cprintf.hh.
|
protected |
Definition at line 50 of file cprintf.hh.
|
protected |
Definition at line 52 of file cprintf.hh.
|
protected |
Definition at line 53 of file cprintf.hh.
|
protected |
Definition at line 45 of file cprintf.hh.
Referenced by addArg(), endArgs(), Print(), process(), and processFlag().