37 using array_t = std::vector<uint64_t>;
38 using DynamicEntry::DynamicEntry;
43 array_(std::move(array))
49 std::unique_ptr<DynamicEntry> clone()
const override {
58 const array_t& array()
const {
61 void array(
const array_t& array) {
70 array_.push_back(function);
86 DynamicEntryArray& operator-=(uint64_t value) {
90 const uint64_t& operator[](
size_t idx)
const;
91 uint64_t& operator[](
size_t idx);
93 void accept(Visitor& visitor)
const override;
95 std::ostream& print(std::ostream& os)
const override;
97 ~DynamicEntryArray()
override =
default;
99 static bool classof(
const DynamicEntry* entry) {
100 const DynamicEntry::TAG tag = entry->tag();
101 return tag == DynamicEntry::TAG::INIT_ARRAY ||
102 tag == DynamicEntry::TAG::FINI_ARRAY ||
103 tag == DynamicEntry::TAG::PREINIT_ARRAY;
Class that represent an Array in the dynamic table. This entry is associated with constructors:
Definition DynamicEntryArray.hpp:35
DynamicEntryArray & remove(uint64_t function)
Remove the given function.
DynamicEntryArray & append(uint64_t function)
Append the given function.
Definition DynamicEntryArray.hpp:69
size_t size() const
Number of function registred in this array.
Definition DynamicEntryArray.hpp:78
DynamicEntryArray & insert(size_t pos, uint64_t function)
Insert the given function at pos
array_t & array()
Return the array values (list of pointers)
Definition DynamicEntryArray.hpp:54
Class which represents an entry in the dynamic table These entries are located in the ....
Definition DynamicEntry.hpp:37
TAG
Definition DynamicEntry.hpp:46