gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::cp::Print Struct Reference

#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
 

Detailed Description

Definition at line 45 of file cprintf.hh.

Constructor & Destructor Documentation

◆ Print() [1/2]

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.

◆ Print() [2/2]

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.

◆ ~Print()

gem5::cp::Print::~Print ( )

Definition at line 61 of file cprintf.cc.

Member Function Documentation

◆ addArg()

◆ endArgs()

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().

◆ getNumber() [1/2]

template<typename T >
int gem5::cp::Print::getNumber ( const T & data)
inline

Definition at line 75 of file cprintf.hh.

◆ getNumber() [2/2]

int gem5::cp::Print::getNumber ( int data)
inline

Definition at line 68 of file cprintf.hh.

References data.

Referenced by addArg().

◆ process()

void gem5::cp::Print::process ( )
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().

◆ processFlag()

Member Data Documentation

◆ cont

bool gem5::cp::Print::cont
protected

Definition at line 51 of file cprintf.hh.

Referenced by addArg().

◆ fmt

Format gem5::cp::Print::fmt
protected

Definition at line 58 of file cprintf.hh.

Referenced by addArg(), process(), and processFlag().

◆ format

const char* gem5::cp::Print::format
protected

Definition at line 49 of file cprintf.hh.

◆ ptr

const char* gem5::cp::Print::ptr
protected

Definition at line 50 of file cprintf.hh.

Referenced by endArgs(), process(), and processFlag().

◆ savedFill

char gem5::cp::Print::savedFill
protected

Definition at line 54 of file cprintf.hh.

Referenced by endArgs(), Print(), and Print().

◆ savedFlags

std::ios::fmtflags gem5::cp::Print::savedFlags
protected

Definition at line 53 of file cprintf.hh.

Referenced by endArgs(), Print(), and Print().

◆ savedPrecision

int gem5::cp::Print::savedPrecision
protected

Definition at line 55 of file cprintf.hh.

Referenced by endArgs(), Print(), and Print().

◆ savedWidth

int gem5::cp::Print::savedWidth
protected

Definition at line 56 of file cprintf.hh.

Referenced by endArgs(), Print(), and Print().

◆ stream

std::ostream& gem5::cp::Print::stream
protected

Definition at line 48 of file cprintf.hh.

Referenced by addArg(), endArgs(), Print(), Print(), process(), and processFlag().


The documentation for this struct was generated from the following files:

Generated on Tue Jun 18 2024 16:24:19 for gem5 by doxygen 1.11.0