gem5
v20.1.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 | get_number (int data) |
template<typename T > | |
int | get_number (const T &data) |
template<typename T > | |
void | add_arg (const T &data) |
void | end_args () |
Protected Member Functions | |
void | process () |
void | process_flag () |
Protected Attributes | |
std::ostream & | stream |
const char * | format |
const char * | ptr |
bool | cont |
std::ios::fmtflags | saved_flags |
char | saved_fill |
int | saved_precision |
int | saved_width |
Format | fmt |
Definition at line 42 of file cprintf.hh.
cp::Print::Print | ( | std::ostream & | stream, |
const std::string & | format | ||
) |
Definition at line 42 of file cprintf.cc.
References saved_fill, saved_flags, saved_precision, saved_width, and stream.
cp::Print::Print | ( | std::ostream & | stream, |
const char * | format | ||
) |
Definition at line 51 of file cprintf.cc.
References saved_fill, saved_flags, saved_precision, saved_width, and stream.
cp::Print::~Print | ( | ) |
Definition at line 60 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::format_char(), cp::format_float(), cp::format_integer(), cp::format_string(), get_number(), cp::Format::get_precision, cp::Format::get_width, cp::Format::integer, cp::Format::precision, process(), stream, cp::Format::string, and cp::Format::width.
Referenced by ccprintf().
void cp::Print::end_args | ( | ) |
Definition at line 278 of file cprintf.cc.
References ArmISA::len, ptr, saved_fill, saved_flags, saved_precision, saved_width, and stream.
Referenced by ccprintf().
|
inline |
Definition at line 72 of file cprintf.hh.
|
inline |
|
protected |
Definition at line 65 of file cprintf.cc.
References cp::Format::clear(), fmt, ArmISA::len, process_flag(), ptr, and stream.
Referenced by add_arg().
|
protected |
Definition at line 102 of file cprintf.cc.
References cp::Format::alternate_form, cp::Format::base, cp::Format::best, cp::Format::blank_space, cp::Format::character, cp::Format::fill_zero, cp::Format::fixed, cp::Format::float_format, cp::Format::floating, cp::Format::flush_left, fmt, cp::Format::format, cp::Format::get_precision, cp::Format::get_width, cp::Format::hex, cp::Format::integer, M5_FALLTHROUGH, cp::Format::oct, cp::Format::precision, cp::Format::print_sign, 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 add_arg().
|
protected |
Definition at line 55 of file cprintf.hh.
Referenced by add_arg(), process(), and process_flag().
|
protected |
Definition at line 46 of file cprintf.hh.
|
protected |
Definition at line 47 of file cprintf.hh.
Referenced by end_args(), process(), and process_flag().
|
protected |
Definition at line 51 of file cprintf.hh.
Referenced by end_args(), and Print().
|
protected |
Definition at line 50 of file cprintf.hh.
Referenced by end_args(), and Print().
|
protected |
Definition at line 52 of file cprintf.hh.
Referenced by end_args(), and Print().
|
protected |
Definition at line 53 of file cprintf.hh.
Referenced by end_args(), and Print().
|
protected |
Definition at line 45 of file cprintf.hh.
Referenced by add_arg(), end_args(), Print(), process(), and process_flag().