16#ifndef LIEF_ABSTRACT_SYMBOLS_H
17#define LIEF_ABSTRACT_SYMBOLS_H
22#include "LIEF/Object.hpp"
23#include "LIEF/visibility.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;
51 virtual const std::string&
name()
const {
54 virtual std::string& name() {
59 virtual void name(std::string name) {
60 name_ = std::move(name);
64 virtual uint64_t value()
const {
67 virtual void value(uint64_t value) {
72 virtual uint64_t
size()
const {
76 virtual void size(uint64_t value) {
83 LIEF_API
friend std::ostream& operator<<(std::ostream& os,
const Symbol& entry);
This class represents a symbol in an executable format.
Definition Abstract/Symbol.hpp:28
virtual uint64_t size() const
This size of the symbol (when applicable)
Definition Abstract/Symbol.hpp:72
virtual void name(std::string name)
Set symbol name.
Definition Abstract/Symbol.hpp:59
void accept(Visitor &visitor) const override
Method so that the visitor can visit us.
virtual const std::string & name() const
Return the symbol's name.
Definition Abstract/Symbol.hpp:51
Definition Visitor.hpp:219
LIEF namespace.
Definition Abstract/Binary.hpp:32