LLDB mainline
Public Member Functions | Private Attributes | Friends | List of all members
lldb::SBAddressRange Class Reference

#include <SBAddressRange.h>

Public Member Functions

 SBAddressRange ()
 
 SBAddressRange (const lldb::SBAddressRange &rhs)
 
 SBAddressRange (lldb::SBAddress addr, lldb::addr_t byte_size)
 
 ~SBAddressRange ()
 
const lldb::SBAddressRangeoperator= (const lldb::SBAddressRange &rhs)
 
void Clear ()
 
bool IsValid () const
 Check the address range refers to a valid base address and has a byte size greater than zero.
 
lldb::SBAddress GetBaseAddress () const
 Get the base address of the range.
 
lldb::addr_t GetByteSize () const
 Get the byte size of this range.
 
bool operator== (const SBAddressRange &rhs)
 
bool operator!= (const SBAddressRange &rhs)
 
bool GetDescription (lldb::SBStream &description, const SBTarget target)
 

Private Attributes

AddressRangeUP m_opaque_up
 

Friends

class SBAddressRangeList
 
class SBBlock
 
class SBFunction
 
class SBProcess
 

Detailed Description

Definition at line 16 of file SBAddressRange.h.

Constructor & Destructor Documentation

◆ SBAddressRange() [1/3]

SBAddressRange::SBAddressRange ( )

Definition at line 24 of file SBAddressRange.cpp.

References LLDB_INSTRUMENT_VA.

◆ SBAddressRange() [2/3]

SBAddressRange::SBAddressRange ( const lldb::SBAddressRange rhs)

Definition at line 29 of file SBAddressRange.cpp.

References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ SBAddressRange() [3/3]

SBAddressRange::SBAddressRange ( lldb::SBAddress  addr,
lldb::addr_t  byte_size 
)

Definition at line 35 of file SBAddressRange.cpp.

References LLDB_INSTRUMENT_VA.

◆ ~SBAddressRange()

SBAddressRange::~SBAddressRange ( )
default

References lldb::operator==().

Member Function Documentation

◆ Clear()

void SBAddressRange::Clear ( )

Definition at line 64 of file SBAddressRange.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ GetBaseAddress()

lldb::SBAddress SBAddressRange::GetBaseAddress ( ) const

Get the base address of the range.

Returns
Base address object.

Definition at line 76 of file SBAddressRange.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ GetByteSize()

lldb::addr_t SBAddressRange::GetByteSize ( ) const

Get the byte size of this range.

Returns
The size in bytes of this address range.

Definition at line 84 of file SBAddressRange.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ GetDescription()

bool SBAddressRange::GetDescription ( lldb::SBStream description,
const SBTarget  target 
)

◆ IsValid()

bool SBAddressRange::IsValid ( ) const

Check the address range refers to a valid base address and has a byte size greater than zero.

Returns
True if the address range is valid, false otherwise.

Definition at line 70 of file SBAddressRange.cpp.

References LLDB_INSTRUMENT_VA, and m_opaque_up.

Referenced by GetBaseAddress(), GetByteSize(), GetDescription(), and operator==().

◆ operator!=()

bool SBAddressRange::operator!= ( const SBAddressRange rhs)

Definition at line 58 of file SBAddressRange.cpp.

References LLDB_INSTRUMENT_VA.

◆ operator=()

const SBAddressRange & SBAddressRange::operator= ( const lldb::SBAddressRange rhs)

Definition at line 42 of file SBAddressRange.cpp.

References lldb_private::clone(), LLDB_INSTRUMENT_VA, and m_opaque_up.

◆ operator==()

bool SBAddressRange::operator== ( const SBAddressRange rhs)

Definition at line 50 of file SBAddressRange.cpp.

References IsValid(), LLDB_INSTRUMENT_VA, and m_opaque_up.

Friends And Related Function Documentation

◆ SBAddressRangeList

friend class SBAddressRangeList
friend

Definition at line 56 of file SBAddressRange.h.

◆ SBBlock

friend class SBBlock
friend

Definition at line 57 of file SBAddressRange.h.

◆ SBFunction

friend class SBFunction
friend

Definition at line 58 of file SBAddressRange.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 59 of file SBAddressRange.h.

Member Data Documentation

◆ m_opaque_up

AddressRangeUP lldb::SBAddressRange::m_opaque_up
private

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