gem5  v20.1.0.0
Public Types | Public Member Functions | Public Attributes | List of all members
cp::Format Struct Reference

#include <cprintf_formats.hh>

Public Types

enum  { dec, hex, oct }
 
enum  {
  none, string, integer, character,
  floating
}
 
enum  { best, fixed, scientific }
 

Public Member Functions

 Format ()
 
void clear ()
 

Public Attributes

bool alternate_form
 
bool flush_left
 
bool print_sign
 
bool blank_space
 
bool fill_zero
 
bool uppercase
 
enum cp::Format:: { ... }  base
 
enum cp::Format:: { ... }  format
 
enum cp::Format:: { ... }  float_format
 
int precision
 
int width
 
bool get_precision
 
bool get_width
 

Detailed Description

Definition at line 38 of file cprintf_formats.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
dec 
hex 
oct 

Definition at line 46 of file cprintf_formats.hh.

◆ anonymous enum

anonymous enum
Enumerator
none 
string 
integer 
character 
floating 

Definition at line 47 of file cprintf_formats.hh.

◆ anonymous enum

anonymous enum
Enumerator
best 
fixed 
scientific 

Definition at line 48 of file cprintf_formats.hh.

Constructor & Destructor Documentation

◆ Format()

cp::Format::Format ( )
inline

Definition at line 54 of file cprintf_formats.hh.

References clear().

Member Function Documentation

◆ clear()

void cp::Format::clear ( )
inline

Member Data Documentation

◆ alternate_form

bool cp::Format::alternate_form

Definition at line 40 of file cprintf_formats.hh.

Referenced by cp::_format_integer(), clear(), and cp::Print::process_flag().

◆ base

enum { ... } cp::Format::base

◆ blank_space

bool cp::Format::blank_space

Definition at line 43 of file cprintf_formats.hh.

Referenced by clear(), and cp::Print::process_flag().

◆ fill_zero

bool cp::Format::fill_zero

◆ float_format

enum { ... } cp::Format::float_format

◆ flush_left

bool cp::Format::flush_left

◆ format

enum { ... } cp::Format::format

◆ get_precision

bool cp::Format::get_precision

Definition at line 51 of file cprintf_formats.hh.

Referenced by cp::Print::add_arg(), clear(), and cp::Print::process_flag().

◆ get_width

bool cp::Format::get_width

Definition at line 52 of file cprintf_formats.hh.

Referenced by cp::Print::add_arg(), clear(), and cp::Print::process_flag().

◆ precision

int cp::Format::precision

◆ print_sign

bool cp::Format::print_sign

Definition at line 42 of file cprintf_formats.hh.

Referenced by cp::_format_integer(), clear(), and cp::Print::process_flag().

◆ uppercase

bool cp::Format::uppercase

◆ width

int cp::Format::width

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

Generated on Wed Sep 30 2020 14:02:39 for gem5 by doxygen 1.8.17