LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
LIEF::Symbol Class Reference

This class represents a symbol in an executable format. More...

#include <Symbol.hpp>

Inheritance diagram for LIEF::Symbol:
Inheritance graph
[legend]
Collaboration diagram for LIEF::Symbol:
Collaboration graph
[legend]

Public Member Functions

 Symbol (std::string name)
 
 Symbol (std::string name, uint64_t value)
 
 Symbol (std::string name, uint64_t value, uint64_t size)
 
 Symbol (const Symbol &)=default
 
Symboloperator= (const Symbol &)=default
 
void swap (Symbol &other) noexcept
 
virtual const std::string & name () const
 Return the symbol's name.
 
virtual std::string & name ()
 
virtual void name (std::string name)
 Set symbol name.
 
virtual uint64_t value () const
 
virtual void value (uint64_t value)
 
virtual uint64_t size () const
 This size of the symbol (when applicable)
 
virtual void size (uint64_t value)
 
void accept (Visitor &visitor) const override
 Method so that the visitor can visit us.
 
- 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
 

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

This class represents a symbol in an executable format.

Member Function Documentation

◆ accept()

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

Method so that the visitor can visit us.

Implements LIEF::Object.

◆ size()

virtual uint64_t LIEF::Symbol::size ( ) const
inlinevirtual

This size of the symbol (when applicable)

Reimplemented in LIEF::ELF::Symbol.

◆ value()

virtual uint64_t LIEF::Symbol::value ( ) const
inlinevirtual

Reimplemented in LIEF::ELF::Symbol.


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