GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
struct_field_searcher Struct Reference

Classes

struct  found_field
 

Public Member Functions

 struct_field_searcher (const char *name, struct type *outermost_type, bool looking_for_baseclass)
 
void search (struct value *arg, LONGEST offset, struct type *type)
 
const std::vector< found_field > & fields ()
 
struct valuebaseclass ()
 

Private Member Functions

void update_result (struct value *v, LONGEST boffset)
 

Private Attributes

const char * m_name
 
const bool m_looking_for_baseclass
 
LONGEST m_last_boffset = 0
 
struct valuem_baseclass = nullptr
 
std::vector< found_fieldm_fields
 
struct typem_outermost_type
 
std::vector< struct type * > m_struct_path
 

Detailed Description

Definition at line 1861 of file valops.c.

Constructor & Destructor Documentation

◆ struct_field_searcher()

struct_field_searcher::struct_field_searcher ( const char * name,
struct type * outermost_type,
bool looking_for_baseclass )
inline

Definition at line 1874 of file valops.c.

Member Function Documentation

◆ baseclass()

struct value * struct_field_searcher::baseclass ( )
inline

Definition at line 1897 of file valops.c.

References m_baseclass.

Referenced by search_struct_field().

◆ fields()

const std::vector< found_field > & struct_field_searcher::fields ( )
inline

Definition at line 1892 of file valops.c.

References m_fields.

Referenced by search_struct_field().

◆ search()

void struct_field_searcher::search ( struct value * arg,
LONGEST offset,
struct type * type )

◆ update_result()

void struct_field_searcher::update_result ( struct value * v,
LONGEST boffset )
private

Member Data Documentation

◆ m_baseclass

struct value* struct_field_searcher::m_baseclass = nullptr
private

Definition at line 1917 of file valops.c.

Referenced by baseclass(), and update_result().

◆ m_fields

std::vector<found_field> struct_field_searcher::m_fields
private

Definition at line 1921 of file valops.c.

Referenced by fields(), and update_result().

◆ m_last_boffset

LONGEST struct_field_searcher::m_last_boffset = 0
private

Definition at line 1914 of file valops.c.

Referenced by update_result().

◆ m_looking_for_baseclass

const bool struct_field_searcher::m_looking_for_baseclass
private

Definition at line 1910 of file valops.c.

Referenced by search(), and update_result().

◆ m_name

const char* struct_field_searcher::m_name
private

Definition at line 1907 of file valops.c.

Referenced by search(), and update_result().

◆ m_outermost_type

struct type* struct_field_searcher::m_outermost_type
private

Definition at line 1925 of file valops.c.

Referenced by update_result().

◆ m_struct_path

std::vector<struct type *> struct_field_searcher::m_struct_path
private

Definition at line 1930 of file valops.c.

Referenced by search(), and update_result().


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