LIEF: Library to Instrument Executable Formats Version
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
LIEF::ELF::DynamicEntryArray Class Reference

Class that represent an Array in the dynamic table. This entry is associated with constructors: More...

#include <DynamicEntryArray.hpp>

Inheritance diagram for LIEF::ELF::DynamicEntryArray:
Inheritance graph
[legend]
Collaboration diagram for LIEF::ELF::DynamicEntryArray:
Collaboration graph
[legend]

Public Types

using array_t = std::vector< uint64_t >
 
- 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 > > >
 

Public Member Functions

 DynamicEntryArray (DYNAMIC_TAGS tag, array_t array)
 
DynamicEntryArrayoperator= (const DynamicEntryArray &)
 
 DynamicEntryArray (const DynamicEntryArray &)
 
array_t & array ()
 Return the array values (list of pointer)
 
const array_t & array () const
 
void array (const array_t &array)
 
DynamicEntryArrayinsert (size_t pos, uint64_t function)
 Insert the given function at pos
 
DynamicEntryArrayappend (uint64_t function)
 Append the given function.
 
DynamicEntryArrayremove (uint64_t function)
 Remove the given function.
 
size_t size () const
 Number of function registred in this array.
 
DynamicEntryArrayoperator+= (uint64_t value)
 
DynamicEntryArrayoperator-= (uint64_t value)
 
const uint64_t & operator[] (size_t idx) const
 
uint64_t & operator[] (size_t idx)
 
void accept (Visitor &visitor) const override
 
std::ostream & print (std::ostream &os) const override
 
 DynamicEntry (const details::Elf64_Dyn &header)
 
 DynamicEntry (const details::Elf32_Dyn &header)
 
 DynamicEntry ()
 
 DynamicEntry (DYNAMIC_TAGS tag, uint64_t value)
 
 DynamicEntry (const DynamicEntry &)
 
- Public Member Functions inherited from LIEF::ELF::DynamicEntry
 DynamicEntry (const details::Elf64_Dyn &header)
 
 DynamicEntry (const details::Elf32_Dyn &header)
 
 DynamicEntry (DYNAMIC_TAGS tag, uint64_t value)
 
DynamicEntryoperator= (const DynamicEntry &)
 
 DynamicEntry (const DynamicEntry &)
 
DYNAMIC_TAGS tag () const
 Tag of the current entry. The most common tags are: DT_NEEDED, DT_INIT, ...
 
uint64_t value () const
 Return the entry's value.
 
void tag (DYNAMIC_TAGS tag)
 
void value (uint64_t value)
 
- Public Member Functions inherited from LIEF::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
 

Static Public Member Functions

static bool classof (const DynamicEntry *entry)
 

Detailed Description

Class that represent an Array in the dynamic table. This entry is associated with constructors:

The underlying values are 64-bits integers to cover both: ELF32 and ELF64 binaries.

Member Function Documentation

◆ accept()

void LIEF::ELF::DynamicEntryArray::accept ( Visitor visitor) const
overridevirtual

Reimplemented from LIEF::ELF::DynamicEntry.

◆ print()

std::ostream & LIEF::ELF::DynamicEntryArray::print ( std::ostream &  os) const
overridevirtual

Reimplemented from LIEF::ELF::DynamicEntry.


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