COFFI
1.2
               
coffi_symbols Class Reference

Class for accessing the symbol table. More...

+ Inheritance diagram for coffi_symbols:

Public Member Functions

virtual symbolget_symbol (uint32_t index)
 Gets a symbol from its index. More...
 
virtual const symbolget_symbol (uint32_t index) const
 Gets a symbol from its index. More...
 
virtual symbolget_symbol (const std::string &name)
 Gets a symbol from its name. More...
 
virtual const symbolget_symbol (const std::string &name) const
 Gets a symbol from its name. More...
 
std::vector< symbol > * get_symbols ()
 
const std::vector< symbol > * get_symbols () const
 
symboladd_symbol (const std::string &name)
 Adds a symbol in the table. More...
 
- Public Member Functions inherited from string_to_name_provider
virtual std::string string_to_name (const char *str) const =0
 Converts an 8-bytes symbol short name into a full name, eventually by looking into the strings table. More...
 
virtual std::string section_string_to_name (const char *str) const =0
 Converts an 8-bytes section short name into a full name, eventually by looking into the strings table. More...
 
virtual void name_to_string (const std::string &name, char *str)=0
 Converts symbol full name into an 8-bytes short name, eventually creating an entry in the strings table.
 
virtual void name_to_section_string (const std::string &name, char *str)=0
 Converts section full name into an 8-bytes short name, eventually creating an entry in the strings table.
 

Detailed Description

Class for accessing the symbol table.

Definition at line 138 of file coffi_symbols.hpp.

Member Function Documentation

◆ add_symbol()

symbol* add_symbol ( const std::string &  name)
inlinevirtual

Adds a symbol in the table.

Eventually creates an entry in the strings table for the symbol name.

Implements symbol_provider.

Definition at line 203 of file coffi_symbols.hpp.

◆ get_symbol() [1/4]

virtual symbol* get_symbol ( const std::string &  name)
inlinevirtual

Gets a symbol from its name.

Implements symbol_provider.

Definition at line 178 of file coffi_symbols.hpp.

◆ get_symbol() [2/4]

virtual const symbol* get_symbol ( const std::string &  name) const
inlinevirtual

Gets a symbol from its name.

Implements symbol_provider.

Definition at line 185 of file coffi_symbols.hpp.

◆ get_symbol() [3/4]

virtual symbol* get_symbol ( uint32_t  index)
inlinevirtual

Gets a symbol from its index.

Implements symbol_provider.

Definition at line 150 of file coffi_symbols.hpp.

◆ get_symbol() [4/4]

virtual const symbol* get_symbol ( uint32_t  index) const
inlinevirtual

Gets a symbol from its index.

Implements symbol_provider.

Definition at line 157 of file coffi_symbols.hpp.


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