template <ElfApi Elf, ElfPhdrType Type>

class PhdrSingletonObserver

Defined at line 236 of file ../../src/lib/elfldltl/include/lib/elfldltl/phdr.h

A class of observer corresponding to the simpler segment metadata types:

it merely stores any program header that it sees at the provided reference,

complaining if it observes more than one segment of the same type.

Public Methods

void PhdrSingletonObserver<Elf, Type> (std::optional<Phdr> & phdr)

Defined at line 240 of file ../../src/lib/elfldltl/include/lib/elfldltl/phdr.h

void PhdrSingletonObserver<Elf, Type> (std::optional<Phdr> & phdr)

Defined at line 240 of file ../../src/lib/elfldltl/include/lib/elfldltl/phdr.h

template <class Diagnostics>
bool Observe (Diagnostics & diagnostics, PhdrTypeMatch<Type> type, const Phdr & phdr)

Defined at line 243 of file ../../src/lib/elfldltl/include/lib/elfldltl/phdr.h

template <class Diagnostics>
bool Finish (Diagnostics & diagnostics)

Defined at line 255 of file ../../src/lib/elfldltl/include/lib/elfldltl/phdr.h

Protected Methods

std::optional<Phdr> & phdr ()

Defined at line 260 of file ../../src/lib/elfldltl/include/lib/elfldltl/phdr.h