COFFI
1.2
               
sections Class Reference

List of sections. More...

+ Inheritance diagram for sections:

Public Member Functions

 sections (const sections &)=delete
 Discards the copy constructor.
 
void clean ()
 
sectionoperator[] (size_t i)
 Subscript operator, finds a section by its index. More...
 
const sectionoperator[] (size_t i) const
 Subscript operator, finds a section by its index. More...
 
sectionoperator[] (const std::string &name)
 Subscript operator, finds a section by its symbolic name. More...
 
const sectionoperator[] (const std::string &name) const
 Subscript operator, finds a section by its symbolic name. More...
 

Detailed Description

List of sections.

It is implemented as a vector of section pointers. This allows to manage easily all the different section implementations (for every COFF format), with pointers to their base interface class (section).

Definition at line 468 of file coffi_section.hpp.

Member Function Documentation

◆ operator[]() [1/4]

section* operator[] ( const std::string &  name)
inline

Subscript operator, finds a section by its symbolic name.

Parameters
[in]nameSymbolic name of the section
Returns
A reference to the element with the section symbolic name name

Definition at line 515 of file coffi_section.hpp.

◆ operator[]() [2/4]

const section* operator[] ( const std::string &  name) const
inline

Subscript operator, finds a section by its symbolic name.

Parameters
[in]nameSymbolic name of the section
Returns
A reference to the element with the section symbolic name name

Definition at line 523 of file coffi_section.hpp.

◆ operator[]() [3/4]

section* operator[] ( size_t  i)
inline

Subscript operator, finds a section by its index.

Parameters
[in]iIndex of the section
Returns
A reference to the element at specified location i

Definition at line 496 of file coffi_section.hpp.

◆ operator[]() [4/4]

const section* operator[] ( size_t  i) const
inline

Subscript operator, finds a section by its index.

Parameters
[in]iIndex of the section
Returns
A reference to the element at specified location i

Definition at line 504 of file coffi_section.hpp.


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