LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
16#ifndef LIEF_ABSTRACT_SYMBOLS_H
17#define LIEF_ABSTRACT_SYMBOLS_H
32 name_(std::move(name))
34 Symbol(std::string name, uint64_t value) :
35 name_(std::move(name)),
38 Symbol(std::string name, uint64_t value, uint64_t size) :
39 name_(std::move(name)),
48 void swap(Symbol& other)
noexcept;
49 virtual const std::string&
name()
const {
54 virtual std::string&
name() {
57 virtual void name(std::string name) {
60 name_ = std::move(name);
64 virtual uint64_t
value()
const {
67 virtual void value(uint64_t value) {
70 virtual uint64_t
size()
const {
76 virtual void size(uint64_t value) {
79 void accept(Visitor& visitor)
const override;
This class represents a symbol in an executable format.
Definition Abstract/Symbol.hpp:28
virtual uint64_t value() const
Definition Abstract/Symbol.hpp:64
virtual uint64_t size() const
This size of the symbol (when applicable)
Definition Abstract/Symbol.hpp:72
Symbol(const Symbol &)=default
virtual void size(uint64_t value)
Definition Abstract/Symbol.hpp:76
Symbol(std::string name)
Definition Abstract/Symbol.hpp:31
Symbol(std::string name, uint64_t value, uint64_t size)
Definition Abstract/Symbol.hpp:38
~Symbol() override=default
virtual void value(uint64_t value)
Definition Abstract/Symbol.hpp:67
Symbol & operator=(const Symbol &)=default
virtual void name(std::string name)
Set symbol name.
Definition Abstract/Symbol.hpp:59
Symbol(std::string name, uint64_t value)
Definition Abstract/Symbol.hpp:34
void accept(Visitor &visitor) const override
Method so that the visitor can visit us.
virtual std::string & name()
Definition Abstract/Symbol.hpp:54
void swap(Symbol &other) noexcept
virtual const std::string & name() const
Return the symbol's name.
Definition Abstract/Symbol.hpp:51
friend std::ostream & operator<<(std::ostream &os, const Symbol &entry)
LIEF namespace.
Definition Abstract/Binary.hpp:36
#define LIEF_API
Definition visibility.h:41