GDB (xrefs)

Public Member Functions | Private Attributes | List of all members
gdb::ref_ptr< T, Policy > Class Template Reference

`#include "gdb_ref_ptr.h"`

## Public Member Functions
| ref_ptr ()
| ref_ptr (const std::nullptr_t)
| ref_ptr (T *obj)
| ref_ptr (const ref_ptr &other)
| ref_ptr (ref_ptr &&other)
| ~ref_ptr ()
ref_ptr & | operator= (const ref_ptr &other)
ref_ptr & | operator= (ref_ptr &&other)
void | reset (T *obj)
T * | get () const
T * | release ()
T * | operator-> () const

## Private Attributes
T * | m_obj

## Detailed Description

### template<typename T, typename Policy>
class gdb::ref_ptr< T, Policy >

Definition at line 49 of file gdb_ref_ptr.h.

## Constructor & Destructor Documentation

## ◆ ref_ptr() [1/5]

template<typename T, typename Policy>

gdb::ref_ptr< T, Policy >::ref_ptr | ( |  | ) |
| inline

Definition at line 54 of file gdb_ref_ptr.h.

## ◆ ref_ptr() [2/5]

template<typename T, typename Policy>

gdb::ref_ptr< T, Policy >::ref_ptr | ( | const std::nullptr_t |  | ) |
| inline

Definition at line 60 of file gdb_ref_ptr.h.

## ◆ ref_ptr() [3/5]

template<typename T, typename Policy>

gdb::ref_ptr< T, Policy >::ref_ptr | ( | T * | obj | ) |
| inline explicit

Definition at line 67 of file gdb_ref_ptr.h.

## ◆ ref_ptr() [4/5]

template<typename T, typename Policy>

gdb::ref_ptr< T, Policy >::ref_ptr | ( | const ref_ptr< T, Policy > & | other | ) |
| inline

Definition at line 73 of file gdb_ref_ptr.h.

## ◆ ref_ptr() [5/5]

template<typename T, typename Policy>

gdb::ref_ptr< T, Policy >::ref_ptr | ( | ref_ptr< T, Policy > && | other | ) |
| inline

Definition at line 81 of file gdb_ref_ptr.h.

## ◆ ~ref_ptr()

template<typename T, typename Policy>

gdb::ref_ptr< T, Policy >::~ref_ptr | ( |  | ) |
| inline

Definition at line 88 of file gdb_ref_ptr.h.

## Member Function Documentation

## ◆ get()

template<typename T, typename Policy>

T* gdb::ref_ptr< T, Policy >::get | ( |  | ) | const
| inline

Definition at line 130 of file gdb_ref_ptr.h.

Referenced by add_thread_object(), archpy_disassemble(), bfd_openr_or_error(), bfd_openw_or_error(), bootstrap_python_frame_filters(), build_id_to_debug_bfd(), build_line_table_tuple_from_pcs(), call_doc_function(), cmdpy_completer(), cmdpy_completer_handle_brkchars(), cmdpy_completer_helper(), cmdpy_function(), cmdpy_init(), coff_symfile_read(), compile_object_load(), compute_enum_values(), convert_field(), convert_value_from_python(), convert_values_to_python(), create_breakpoint_event_object(), create_clear_objfiles_event_object(), create_exited_event_object(), create_gcore_bfd(), create_inferior_call_event_object(), create_memory_changed_event_object(), create_new_objfile_event_object(), create_register_changed_event_object(), create_signal_event_object(), create_thread_event_object(), darwin_bfd_open(), darwin_solib_get_all_image_info_addr_at_init(), do_finish_initialization(), dummy_python_frame::dummy_python_frame(), dump_bfd_file(), elf_symfile_read(), emit_clear_objfiles_event(), emit_continue_event(), emit_exited_event(), emit_inferior_call_event(), emit_memory_changed_event(), emit_new_objfile_event(), emit_register_changed_event(), emit_stop_event(), enable_break(), enable_break2(), enumerate_locals(), evpy_emit_event(), extract_sym(), extract_value(), find_pretty_printer_from_gdb(), find_pretty_printer_from_objfiles(), find_pretty_printer_from_progspace(), find_separate_debug_file_by_buildid(), find_separate_debug_file_in_section(), find_thread_object(), fnpy_call(), fnpy_init(), gdbpy_apply_frame_filter(), gdbpy_apply_type_printers(), gdbpy_apply_val_pretty_printer(), gdbpy_before_prompt_hook(), gdbpy_breakpoint_cond_says_stop(), gdbpy_breakpoint_deleted(), gdbpy_breakpoints(), gdbpy_decode_line(), gdbpy_get_display_hint(), gdbpy_get_matching_xmethod_workers(), gdbpy_get_xmethod_arg_types(), gdbpy_get_xmethod_result_type(), gdbpy_inferiors(), gdbpy_invoke_xmethod(), gdbpy_obj_to_string(), gdbpy_objfiles(), gdbpy_progspaces(), gdbpy_rbreak(), gdbpy_start_type_printers(), gdbpy_string_to_argv(), generic_load(), get_addr_from_python(), get_doc_string(), get_field_flag(), get_field_type(), get_py_iter_from_func(), get_set_value(), get_show_value(), invoke_match_method(), jit_bfd_try_read_symtab(), ltpy_get_all_source_lines(), macho_add_oso_symfile(), macho_check_dsym(), macho_symfile_read(), macho_symfile_read_all_oso(), make_fielditem(), objfpy_add_separate_debug_file(), open_and_init_dwp_file(), gdb::operator!=(), gdb::operator==(), pretty_print_one_value(), print_children(), print_string_repr(), py_mi_print_variables(), py_print_args(), py_print_frame(), py_print_locals(), py_varobj_get_iterator(), py_varobj_iter_next(), python_inferior_deleted(), python_new_inferior(), python_string_to_host_string(), python_string_to_target_python_string(), python_string_to_target_string(), pyuw_object_attribute_to_pointer(), pyuw_sniffer(), read_symbols(), record_full_save(), restore_command(), search_pp_list(), separate_debug_file_exists(), solib_aix_bfd_open(), solib_bfd_fopen(), solib_bfd_open(), spu_bfd_fopen(), spu_bfd_open(), spu_symbol_file_add_from_memory(), symbol_file_add(), symfile_bfd_open(), symtab_and_line_to_sal_object(), try_open_dwop_file(), typy_fields(), typy_range(), valpy_getitem(), varobj_set_visualizer(), varobj_value_get_print_value(), and windows_xfer_shared_library().

## ◆ operator->()

template<typename T, typename Policy>

T* gdb::ref_ptr< T, Policy >::operator-> | ( |  | ) | const
| inline

Definition at line 147 of file gdb_ref_ptr.h.

## ◆ operator=() [1/2]

template<typename T, typename Policy>

ref_ptr& gdb::ref_ptr< T, Policy >::operator= | ( | const ref_ptr< T, Policy > & | other | ) |
| inline

Definition at line 95 of file gdb_ref_ptr.h.

## ◆ operator=() [2/2]

template<typename T, typename Policy>

ref_ptr& gdb::ref_ptr< T, Policy >::operator= | ( | ref_ptr< T, Policy > && | other | ) |
| inline

Definition at line 108 of file gdb_ref_ptr.h.

## ◆ release()

template<typename T, typename Policy>

T* gdb::ref_ptr< T, Policy >::release | ( |  | ) |
| inline

Definition at line 138 of file gdb_ref_ptr.h.

Referenced by archpy_disassemble(), bootstrap_python_frame_filters(), build_id_to_debug_bfd(), build_line_table_tuple_from_pcs(), cmdpy_completer_helper(), convert_field(), convert_values_to_python(), create_clear_objfiles_event_object(), create_event_object(), create_eventregistry_object(), create_exited_event_object(), create_new_objfile_event_object(), darwin_solib_get_all_image_info_addr_at_init(), exec_file_attach(), field_new(), find_pretty_printer(), find_pretty_printer_from_objfiles(), frame_info_to_frame_object(), gdbpy_decode_line(), gdbpy_get_xmethod_result_type(), gdbpy_invoke_xmethod(), gdbpy_objfiles(), gdbpy_progspaces(), gdbpy_string_to_argv(), get_py_iter_from_func(), make_fielditem(), objfpy_new(), open_and_init_dwo_file(), open_and_init_dwp_file(), pretty_print_one_value(), pspy_new(), reread_symbols(), search_pp_list(), solib_map_sections(), symtab_and_line_to_sal_object(), and typy_range().

## ◆ reset()

template<typename T, typename Policy>

void gdb::ref_ptr< T, Policy >::reset | ( | T * | obj | ) |
| inline

Definition at line 121 of file gdb_ref_ptr.h.

Referenced by cmdpy_completer_helper(), convert_field(), dummy_python_frame::dummy_python_frame(), emit_stop_event(), fnpy_call(), gdbpy_decode_line(), gdb::ref_ptr< T, gdbpy_ref_policy< T > >::operator=(), pretty_print_one_value(), and py_varobj_iter_next().

## Member Data Documentation

## ◆ m_obj

template<typename T, typename Policy>

T* gdb::ref_ptr< T, Policy >::m_obj
| private

Definition at line 154 of file gdb_ref_ptr.h.

Referenced by gdb::ref_ptr< T, gdbpy_ref_policy< T > >::get(), gdb::ref_ptr< T, gdbpy_ref_policy< T > >::operator->(), gdb::ref_ptr< T, gdbpy_ref_policy< T > >::operator=(), gdb::ref_ptr< T, gdbpy_ref_policy< T > >::ref_ptr(), gdb::ref_ptr< T, gdbpy_ref_policy< T > >::release(), gdb::ref_ptr< T, gdbpy_ref_policy< T > >::reset(), and gdb::ref_ptr< T, gdbpy_ref_policy< T > >::~ref_ptr().

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

- /tmp/gdb-8.1/gdb/common/gdb_ref_ptr.h