gem5
|
#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 |
Format | fmt |
Definition at line 46 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, and saved_precision.
cp::Print::Print | ( | std::ostream & | stream, |
const char * | format | ||
) |
Definition at line 50 of file cprintf.cc.
References saved_fill, saved_flags, and saved_precision.
cp::Print::~Print | ( | ) |
Definition at line 58 of file cprintf.cc.
|
inline |
Definition at line 82 of file cprintf.hh.
References cp::Format::character, cont, 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 272 of file cprintf.cc.
References ArmISA::len, ptr, saved_fill, saved_flags, saved_precision, and stream.
Referenced by ccprintf().
|
inline |
|
inline |
Definition at line 75 of file cprintf.hh.
|
protected |
Definition at line 63 of file cprintf.cc.
References cp::Format::clear(), fmt, ArmISA::len, process_flag(), ptr, and stream.
Referenced by add_arg().
|
protected |
Definition at line 100 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, 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 52 of file cprintf.hh.
Referenced by add_arg().
|
protected |
Definition at line 58 of file cprintf.hh.
Referenced by add_arg(), process(), and process_flag().
|
protected |
Definition at line 50 of file cprintf.hh.
|
protected |
Definition at line 51 of file cprintf.hh.
Referenced by end_args(), process(), and process_flag().
|
protected |
Definition at line 55 of file cprintf.hh.
Referenced by end_args(), and Print().
|
protected |
Definition at line 54 of file cprintf.hh.
Referenced by end_args(), and Print().
|
protected |
Definition at line 56 of file cprintf.hh.
Referenced by end_args(), and Print().
|
protected |
Definition at line 49 of file cprintf.hh.
Referenced by add_arg(), end_args(), process(), and process_flag().