GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
fortran_array_printer_impl Class Reference
Inheritance diagram for fortran_array_printer_impl:
fortran_array_walker_base_impl

Public Member Functions

 fortran_array_printer_impl (struct type *type, CORE_ADDR address, struct value *val, struct ui_file *stream, int recurse, const struct value_print_options *options)
 
bool continue_walking (bool should_continue)
 
void start_dimension (struct type *index_type, LONGEST nelts, bool inner_p)
 
void finish_dimension (bool inner_p, bool last_p)
 
void process_dimension (gdb::function_view< void(struct type *, int, bool)> walk_1, struct type *elt_type, LONGEST elt_off, LONGEST index, bool last_p)
 
void process_element (struct type *elt_type, LONGEST elt_off, LONGEST index, bool last_p)
 
- Public Member Functions inherited from fortran_array_walker_base_impl
bool continue_walking (bool should_continue)
 
void start_dimension (struct type *index_type, LONGEST nelts, bool inner_p)
 
void finish_dimension (bool inner_p, bool last_p)
 
void process_dimension (gdb::function_view< void(struct type *, int, bool)> walk_1, struct type *elt_type, LONGEST elt_off, LONGEST index, bool last_p)
 
void process_element (struct type *elt_type, LONGEST elt_off, LONGEST index, bool last_p)
 

Private Member Functions

bool dimension_contents_eq (struct value *val, struct type *type, LONGEST offset1, LONGEST offset2)
 

Private Attributes

int m_elts
 
struct valuem_val
 
struct ui_filem_stream
 
int m_recurse
 
const struct value_print_optionsm_options = nullptr
 
LONGEST m_dimension
 
LONGEST m_nrepeats
 
struct typem_elt_type_prev
 
LONGEST m_elt_off_prev
 
std::vector< struct dimension_statsm_stats
 

Detailed Description

Definition at line 112 of file f-valprint.c.

Constructor & Destructor Documentation

◆ fortran_array_printer_impl()

fortran_array_printer_impl::fortran_array_printer_impl ( struct type * type,
CORE_ADDR address,
struct value * val,
struct ui_file * stream,
int recurse,
const struct value_print_options * options )
inlineexplicit

Definition at line 120 of file f-valprint.c.

Member Function Documentation

◆ continue_walking()

bool fortran_array_printer_impl::continue_walking ( bool should_continue)
inline

Definition at line 141 of file f-valprint.c.

References gdb_puts(), m_elts, m_options, m_stream, and value_print_options::print_max.

◆ dimension_contents_eq()

bool fortran_array_printer_impl::dimension_contents_eq ( struct value * val,
struct type * type,
LONGEST offset1,
LONGEST offset2 )
inlineprivate

◆ finish_dimension()

void fortran_array_printer_impl::finish_dimension ( bool inner_p,
bool last_p )
inline

Definition at line 170 of file f-valprint.c.

References gdb_puts(), m_dimension, and m_stream.

◆ process_dimension()

void fortran_array_printer_impl::process_dimension ( gdb::function_view< void(struct type *, int, bool)> walk_1,
struct type * elt_type,
LONGEST elt_off,
LONGEST index,
bool last_p )
inline

◆ process_element()

void fortran_array_printer_impl::process_element ( struct type * elt_type,
LONGEST elt_off,
LONGEST index,
bool last_p )
inline

◆ start_dimension()

void fortran_array_printer_impl::start_dimension ( struct type * index_type,
LONGEST nelts,
bool inner_p )
inline

Definition at line 151 of file f-valprint.c.

References gdb_puts(), type::index_type(), m_dimension, m_elt_type_prev, m_stats, and m_stream.

Member Data Documentation

◆ m_dimension

LONGEST fortran_array_printer_impl::m_dimension
private

◆ m_elt_off_prev

LONGEST fortran_array_printer_impl::m_elt_off_prev
private

Definition at line 416 of file f-valprint.c.

Referenced by process_dimension(), and process_element().

◆ m_elt_type_prev

struct type* fortran_array_printer_impl::m_elt_type_prev
private

Definition at line 415 of file f-valprint.c.

Referenced by process_dimension(), process_element(), and start_dimension().

◆ m_elts

int fortran_array_printer_impl::m_elts
private

Definition at line 392 of file f-valprint.c.

Referenced by continue_walking(), process_dimension(), and process_element().

◆ m_nrepeats

LONGEST fortran_array_printer_impl::m_nrepeats
private

Definition at line 411 of file f-valprint.c.

Referenced by process_dimension(), and process_element().

◆ m_options

const struct value_print_options* fortran_array_printer_impl::m_options = nullptr
private

Definition at line 405 of file f-valprint.c.

Referenced by continue_walking(), process_dimension(), and process_element().

◆ m_recurse

int fortran_array_printer_impl::m_recurse
private

Definition at line 401 of file f-valprint.c.

Referenced by process_element().

◆ m_stats

std::vector<struct dimension_stats> fortran_array_printer_impl::m_stats
private

Definition at line 419 of file f-valprint.c.

Referenced by process_dimension(), process_element(), and start_dimension().

◆ m_stream

struct ui_file* fortran_array_printer_impl::m_stream
private

◆ m_val

struct value* fortran_array_printer_impl::m_val
private

Definition at line 395 of file f-valprint.c.

Referenced by process_dimension(), and process_element().


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