|
LIEF: Library to Instrument Executable Formats Version 1.0.0
|
This class represents a symbol in an executable format. More...
#include <Symbol.hpp>


Public Member Functions | |
| Symbol ()=default | |
| 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 | |
| Symbol & | operator= (const Symbol &)=default |
| Symbol (Symbol &&)=default | |
| Symbol & | operator= (Symbol &&)=default |
| ~Symbol () override=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 () | |
| Object (const Object &other) | |
| Object & | operator= (const Object &other) |
| Object (Object &&other) noexcept=default | |
| Object & | operator= (Object &&other) noexcept=default |
| 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>>> |
This class represents a symbol in an executable format.
|
default |
|
inline |
References name().
|
inline |
|
overridedefault |
|
overridevirtual |
Method so that the visitor can visit us.
Implements LIEF::Object.
|
inlinevirtual |
Reimplemented in LIEF::COFF::Symbol.
|
inlinevirtual |
Return the symbol's name.
Reimplemented in LIEF::COFF::Symbol.
Referenced by LIEF::PE::ExportEntry::ExportEntry(), LIEF::Function::Function(), LIEF::Function::Function(), LIEF::Function::Function(), LIEF::PE::ImportEntry::ImportEntry(), name(), LIEF::ELF::Symbol::Symbol(), Symbol(), Symbol(), and Symbol().
|
inlinevirtual |
Set symbol name.
References name().
|
inlinevirtual |
This size of the symbol (when applicable).
Reimplemented in LIEF::ELF::Symbol.
Referenced by Symbol().
|
inlinevirtual |
Reimplemented in LIEF::ELF::Symbol.
References value().
|
inlinevirtual |
Reimplemented in LIEF::ELF::Symbol, and LIEF::PE::ExportEntry.
Referenced by LIEF::COFF::Symbol::is_undefined(), size(), LIEF::COFF::Symbol::storage_class(), LIEF::MachO::Symbol::Symbol(), Symbol(), Symbol(), and value().
|
inlinevirtual |
Reimplemented in LIEF::ELF::Symbol, and LIEF::PE::ExportEntry.
References value().