geopm  3.1.1.dev214+gba4f9f6d
GEOPM - Global Extensible Open Power Manager
Public Member Functions | List of all members
geopm::ELFImp Class Reference
Inheritance diagram for geopm::ELFImp:
Inheritance graph
[legend]
Collaboration diagram for geopm::ELFImp:
Collaboration graph
[legend]

Public Member Functions

 ELFImp ()=delete
 
 ELFImp (const std::string &file_path)
 
 ELFImp (const ELFImp &other)=delete
 
ELFImpoperator= (const ELFImp &other)=delete
 
virtual ~ELFImp ()
 
size_t num_symbol (void) override
 Get the number of symbols in the current section. More...
 
std::string symbol_name (void) override
 Get the name of the current symbol. More...
 
size_t symbol_offset (void) override
 Get the offset of the current symbol. More...
 
bool next_section (void) override
 Iterate to the next section. More...
 
bool next_data (void) override
 Iterate to the next data descriptor in the section. More...
 
bool next_symbol (void) override
 Iterate to the next symbol in the section. More...
 
- Public Member Functions inherited from geopm::ELF
 ELF ()=default
 
virtual ~ELF ()=default
 

Constructor & Destructor Documentation

◆ ELFImp() [1/3]

geopm::ELFImp::ELFImp ( )
delete

◆ ELFImp() [2/3]

geopm::ELFImp::ELFImp ( const std::string &  file_path)

◆ ELFImp() [3/3]

geopm::ELFImp::ELFImp ( const ELFImp other)
delete

◆ ~ELFImp()

geopm::ELFImp::~ELFImp ( )
virtual

Member Function Documentation

◆ next_data()

bool geopm::ELFImp::next_data ( void  )
overridevirtual

Iterate to the next data descriptor in the section.

Returns
True if next data descriptor exists, false when all data descriptors in the section have been iterated over.

Implements geopm::ELF.

◆ next_section()

bool geopm::ELFImp::next_section ( void  )
overridevirtual

Iterate to the next section.

Returns
True if next section exists, false when all sections have been iterated over.

Implements geopm::ELF.

◆ next_symbol()

bool geopm::ELFImp::next_symbol ( void  )
overridevirtual

Iterate to the next symbol in the section.

Returns
True if next symbol in section exists, false when all symbols in the section have been iterated over.

Implements geopm::ELF.

◆ num_symbol()

size_t geopm::ELFImp::num_symbol ( void  )
overridevirtual

Get the number of symbols in the current section.

Returns
Number of symbols.

Implements geopm::ELF.

◆ operator=()

ELFImp& geopm::ELFImp::operator= ( const ELFImp other)
delete

◆ symbol_name()

std::string geopm::ELFImp::symbol_name ( void  )
overridevirtual

Get the name of the current symbol.

Returns
Current symbol name. Will return an empty string if all symbols in section have been iterated over.

Implements geopm::ELF.

◆ symbol_offset()

size_t geopm::ELFImp::symbol_offset ( void  )
overridevirtual

Get the offset of the current symbol.

Returns
Current symbol offset. Will return zero if all symbols in section have been iterated over.

Implements geopm::ELF.


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