GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
amd_dbgapi_register_type_flags Struct Reference
Inheritance diagram for amd_dbgapi_register_type_flags:
amd_dbgapi_register_type

Classes

struct  field
 

Public Types

using container_type = std::vector<field>
 
using const_iterator_type = container_type::const_iterator
 
- Public Types inherited from amd_dbgapi_register_type
enum class  kind {
  INTEGER , FLOAT , DOUBLE , VECTOR ,
  CODE_PTR , FLAGS , ENUM
}
 

Public Member Functions

 amd_dbgapi_register_type_flags (unsigned int bit_size, gdb::string_view name)
 
unsigned int bit_size () const
 
void add_field (std::string name, unsigned int bit_pos_start, unsigned int bit_pos_end, const amd_dbgapi_register_type *type)
 
container_type::size_type size () const
 
const fieldoperator[] (container_type::size_type pos) const
 
const_iterator_type begin () const
 
const_iterator_type end () const
 
const std::string & name () const
 
- Public Member Functions inherited from amd_dbgapi_register_type
 amd_dbgapi_register_type (kind kind, std::string lookup_name)
 
virtual ~amd_dbgapi_register_type ()=default
 
kind kind () const
 
const std::string & lookup_name () const
 

Static Public Member Functions

static std::string make_lookup_name (int bits, gdb::string_view name)
 

Private Attributes

unsigned int m_bit_size
 
container_type m_fields
 
std::string m_name
 

Detailed Description

Definition at line 227 of file amdgpu-tdep.c.

Member Typedef Documentation

◆ const_iterator_type

using amd_dbgapi_register_type_flags::const_iterator_type = container_type::const_iterator

Definition at line 238 of file amdgpu-tdep.c.

◆ container_type

Definition at line 237 of file amdgpu-tdep.c.

Constructor & Destructor Documentation

◆ amd_dbgapi_register_type_flags()

amd_dbgapi_register_type_flags::amd_dbgapi_register_type_flags ( unsigned int bit_size,
gdb::string_view name )
inline

Definition at line 240 of file amdgpu-tdep.c.

Member Function Documentation

◆ add_field()

void amd_dbgapi_register_type_flags::add_field ( std::string name,
unsigned int bit_pos_start,
unsigned int bit_pos_end,
const amd_dbgapi_register_type * type )
inline

Definition at line 250 of file amdgpu-tdep.c.

References m_fields, and name().

Referenced by parse_amd_dbgapi_register_type_flags_fields().

◆ begin()

const_iterator_type amd_dbgapi_register_type_flags::begin ( ) const
inline

Definition at line 264 of file amdgpu-tdep.c.

References m_fields.

◆ bit_size()

unsigned int amd_dbgapi_register_type_flags::bit_size ( ) const
inline

Definition at line 247 of file amdgpu-tdep.c.

References m_bit_size.

◆ end()

const_iterator_type amd_dbgapi_register_type_flags::end ( ) const
inline

Definition at line 267 of file amdgpu-tdep.c.

References m_fields.

◆ make_lookup_name()

static std::string amd_dbgapi_register_type_flags::make_lookup_name ( int bits,
gdb::string_view name )
inlinestatic

Definition at line 273 of file amdgpu-tdep.c.

References bits, and name().

Referenced by parse_amd_dbgapi_register_type().

◆ name()

const std::string & amd_dbgapi_register_type_flags::name ( ) const
inline

◆ operator[]()

const field & amd_dbgapi_register_type_flags::operator[] ( container_type::size_type pos) const
inline

Definition at line 261 of file amdgpu-tdep.c.

References m_fields.

◆ size()

container_type::size_type amd_dbgapi_register_type_flags::size ( ) const
inline

Definition at line 258 of file amdgpu-tdep.c.

References m_fields.

Member Data Documentation

◆ m_bit_size

unsigned int amd_dbgapi_register_type_flags::m_bit_size
private

Definition at line 281 of file amdgpu-tdep.c.

Referenced by bit_size().

◆ m_fields

container_type amd_dbgapi_register_type_flags::m_fields
private

Definition at line 282 of file amdgpu-tdep.c.

Referenced by add_field(), begin(), end(), operator[](), and size().

◆ m_name

std::string amd_dbgapi_register_type_flags::m_name
private

Definition at line 283 of file amdgpu-tdep.c.

Referenced by name().


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