LIEF: Library to Instrument Executable Formats Version 0.15.1
Loading...
Searching...
No Matches
LIEF::Relocation Class Reference

Class which represents an abstracted Relocation. More...

#include <Relocation.hpp>

Inheritance diagram for LIEF::Relocation:
Collaboration diagram for LIEF::Relocation:

Public Member Functions

 Relocation ()
 
 Relocation (uint64_t address, uint8_t size)
 Constructor from a relocation's address and size.
 
 ~Relocation () override
 
Relocationoperator= (const Relocation &)
 
 Relocation (const Relocation &)
 
void swap (Relocation &other)
 
virtual uint64_t address () const
 Relocation's address.
 
virtual size_t size () const
 Relocation size in bits
 
virtual void address (uint64_t address)
 
virtual void size (size_t size)
 
void accept (Visitor &visitor) const override
 Method so that the visitor can visit us.
 
virtual bool operator< (const Relocation &rhs) const
 Comparaison based on the Relocation's address
 
virtual bool operator<= (const Relocation &rhs) const
 Comparaison based on the Relocation's address
 
virtual bool operator> (const Relocation &rhs) const
 Comparaison based on the Relocation's address
 
virtual bool operator>= (const Relocation &rhs) const
 Comparaison based on the Relocation's address
 
- Public Member Functions inherited from LIEF::Object
 Object ()
 
 Object (const Object &other)
 
Objectoperator= (const Object &other)
 
template<class T >
output_t< T > as ()
 
template<class T >
output_const_t< T > as () const
 
virtual bool operator== (const Object &other) const
 
virtual bool operator!= (const Object &other) const
 
virtual ~Object ()
 

Additional Inherited Members

- Public Types inherited from LIEF::Object
template<class T >
using output_t = add_pointer_t<decay_t<T>>
 
template<class T >
using output_const_t = add_pointer_t<add_const_t<decay_t<T>>>
 

Detailed Description

Class which represents an abstracted Relocation.

Constructor & Destructor Documentation

◆ Relocation() [1/3]

LIEF::Relocation::Relocation ( )

◆ Relocation() [2/3]

LIEF::Relocation::Relocation ( uint64_t address,
uint8_t size )

Constructor from a relocation's address and size.

◆ ~Relocation()

LIEF::Relocation::~Relocation ( )
override

◆ Relocation() [3/3]

LIEF::Relocation::Relocation ( const Relocation & )

Member Function Documentation

◆ accept()

void LIEF::Relocation::accept ( Visitor & visitor) const
overridevirtual

Method so that the visitor can visit us.

Implements LIEF::Object.

Reimplemented in LIEF::MachO::RelocationDyld, LIEF::MachO::RelocationFixup, LIEF::MachO::RelocationObject, and LIEF::PE::RelocationEntry.

◆ address() [1/2]

virtual uint64_t LIEF::Relocation::address ( ) const
virtual

◆ address() [2/2]

virtual void LIEF::Relocation::address ( uint64_t address)
virtual

◆ operator<()

virtual bool LIEF::Relocation::operator< ( const Relocation & rhs) const
virtual

Comparaison based on the Relocation's address

◆ operator<=()

virtual bool LIEF::Relocation::operator<= ( const Relocation & rhs) const
virtual

Comparaison based on the Relocation's address

◆ operator=()

Relocation & LIEF::Relocation::operator= ( const Relocation & )

◆ operator>()

virtual bool LIEF::Relocation::operator> ( const Relocation & rhs) const
virtual

Comparaison based on the Relocation's address

◆ operator>=()

virtual bool LIEF::Relocation::operator>= ( const Relocation & rhs) const
virtual

Comparaison based on the Relocation's address

◆ size() [1/2]

virtual size_t LIEF::Relocation::size ( ) const
virtual

◆ size() [2/2]

virtual void LIEF::Relocation::size ( size_t size)
virtual

◆ swap()

void LIEF::Relocation::swap ( Relocation & other)

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