pstore2
Public Member Functions | List of all members
pstore::repo::dispatcher Class Referenceabstract

This class is used to add virtual methods to a fragment's section. More...

#include <section.hpp>

Inheritance diagram for pstore::repo::dispatcher:
Inheritance graph
[legend]

Public Member Functions

virtual std::size_t size_bytes () const =0
 
virtual unsigned align () const =0
 
virtual std::size_t size () const =0
 
virtual container< internal_fixupifixups () const =0
 
virtual container< external_fixupxfixups () const =0
 
virtual container< std::uint8_t > payload () const =0
 Return the data section stored in the object file. More...
 

Detailed Description

This class is used to add virtual methods to a fragment's section.

The section types themselves cannot be virtual because they're written to disk and wouldn't be portable between different C++ ABIs. The concrete classes derived from "dispatcher" wrap the real section data types and forward to calls directly to them.

Member Function Documentation

◆ payload()

virtual container<std::uint8_t> pstore::repo::dispatcher::payload ( ) const
pure virtual

Return the data section stored in the object file.

For example, the bss section has empty data section.

Implemented in pstore::repo::section_dispatcher, pstore::repo::linked_definitions_dispatcher, pstore::repo::bss_section_dispatcher, and pstore::repo::debug_line_dispatcher.


The documentation for this class was generated from the following files: