GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
location_spec Struct Referenceabstract

#include "location.h"

Inheritance diagram for location_spec:
address_location_spec explicit_location_spec linespec_location_spec probe_location_spec

Public Member Functions

virtual ~location_spec ()=default
 
virtual location_spec_up clone () const =0
 
virtual bool empty_p () const =0
 
const char * to_string () const
 
void set_string (std::string &&string)
 
enum location_spec_type type () const
 

Protected Member Functions

 location_spec (enum location_spec_type t)
 
 location_spec (enum location_spec_type t, std::string &&str)
 
 location_spec (const location_spec &other)
 
virtual std::string compute_string () const =0
 

Protected Attributes

std::string m_as_string
 

Private Attributes

enum location_spec_type m_type
 

Detailed Description

Definition at line 76 of file location.h.

Constructor & Destructor Documentation

◆ ~location_spec()

virtual location_spec::~location_spec ( )
virtualdefault

◆ location_spec() [1/3]

location_spec::location_spec ( enum location_spec_type t)
inlineexplicitprotected

Definition at line 115 of file location.h.

◆ location_spec() [2/3]

location_spec::location_spec ( enum location_spec_type t,
std::string && str )
inlineprotected

Definition at line 120 of file location.h.

◆ location_spec() [3/3]

location_spec::location_spec ( const location_spec & other)
inlineprotected

Definition at line 126 of file location.h.

Member Function Documentation

◆ clone()

virtual location_spec_up location_spec::clone ( ) const
pure virtual

◆ compute_string()

virtual std::string location_spec::compute_string ( ) const
protectedpure virtual

◆ empty_p()

virtual bool location_spec::empty_p ( ) const
pure virtual

◆ set_string()

void location_spec::set_string ( std::string && string)
inline

Definition at line 102 of file location.h.

References m_as_string.

Referenced by canonicalize_linespec().

◆ to_string()

const char * location_spec::to_string ( ) const
inline

Definition at line 92 of file location.h.

References compute_string(), and m_as_string.

Referenced by decode_line_full(), location_spec_to_sals(), and parse_probes().

◆ type()

enum location_spec_type location_spec::type ( ) const
inline

Member Data Documentation

◆ m_as_string

std::string location_spec::m_as_string
mutableprotected

◆ m_type

enum location_spec_type location_spec::m_type
private

Definition at line 142 of file location.h.

Referenced by type().


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