#include <symbol_table.h>
◆ symbolsConstIterator
◆ symbolsIterator
◆ addSymbol() [1/2]
void retdec::fileformat::SymbolTable::addSymbol |
( |
const std::shared_ptr< Symbol > & |
symbol | ) |
|
Add new symbol to table
- Parameters
-
◆ addSymbol() [2/2]
void retdec::fileformat::SymbolTable::addSymbol |
( |
std::shared_ptr< Symbol > && |
symbol | ) |
|
Add new symbol to table
- Parameters
-
◆ begin() [1/2]
Get begin iterator
- Returns
- Begin iterator
◆ begin() [2/2]
Get begin constant iterator
- Returns
- Begin constant iterator
◆ clear()
void retdec::fileformat::SymbolTable::clear |
( |
| ) |
|
Delete all records from table
◆ dump()
void retdec::fileformat::SymbolTable::dump |
( |
std::string & |
dumpTable | ) |
const |
Dump information about all symbols in table
- Parameters
-
dumpTable | Into this parameter is stored dump of symbol table in an LLVM style |
◆ end() [1/2]
Get end iterator
- Returns
- End iterator
◆ end() [2/2]
Get end constant iterator
- Returns
- End constant iterator
◆ getName()
const std::string & retdec::fileformat::SymbolTable::getName |
( |
| ) |
const |
Get name of the symbol table.
- Returns
- Name of the symbol table.
◆ getNumberOfSymbols()
std::size_t retdec::fileformat::SymbolTable::getNumberOfSymbols |
( |
| ) |
const |
Get number of symbols in table
- Returns
- Number of symbols in table
◆ getSymbol() [1/4]
Symbol * retdec::fileformat::SymbolTable::getSymbol |
( |
const std::string & |
name | ) |
|
Get symbol by name
- Parameters
-
name | Name of the symbol to get |
- Returns
- Pointer to symbol with the specified name or
nullptr
if such item not found
◆ getSymbol() [2/4]
const Symbol * retdec::fileformat::SymbolTable::getSymbol |
( |
const std::string & |
name | ) |
const |
Get symbol by name
- Parameters
-
name | Name of the symbol to get |
- Returns
- Pointer to symbol with the specified name or
nullptr
if such item not found
◆ getSymbol() [3/4]
Symbol * retdec::fileformat::SymbolTable::getSymbol |
( |
std::size_t |
symbolIndex | ) |
|
Get pointer to symbol from table
- Parameters
-
symbolIndex | Index of selected symbol (indexed from 0) |
- Returns
- Pointer to symbol or
nullptr
if symbol index is invalid
◆ getSymbol() [4/4]
const Symbol * retdec::fileformat::SymbolTable::getSymbol |
( |
std::size_t |
symbolIndex | ) |
const |
Get pointer to symbol from table
- Parameters
-
symbolIndex | Index of selected symbol (indexed from 0) |
- Returns
- Pointer to symbol or
nullptr
if symbol index is invalid
◆ getSymbolOnAddress() [1/2]
Symbol * retdec::fileformat::SymbolTable::getSymbolOnAddress |
( |
unsigned long long |
addr | ) |
|
Get pointer to symbol from table
- Parameters
-
addr | Address of selected symbol |
- Returns
- Pointer to symbol or
nullptr
if symbol address is invalid
◆ getSymbolOnAddress() [2/2]
const Symbol * retdec::fileformat::SymbolTable::getSymbolOnAddress |
( |
unsigned long long |
addr | ) |
const |
Get pointer to symbol from table
- Parameters
-
addr | Address of selected symbol |
- Returns
- Pointer to symbol or
nullptr
if symbol address is invalid
◆ getSymbolWithIndex() [1/2]
Symbol * retdec::fileformat::SymbolTable::getSymbolWithIndex |
( |
std::size_t |
symbolIndex | ) |
|
Get pointer to symbol from table with specified index
- Parameters
-
symbolIndex | Index stored in symbol |
- Returns
- Pointer to symbol or
nullptr
if symbol with index is not found
◆ getSymbolWithIndex() [2/2]
const Symbol * retdec::fileformat::SymbolTable::getSymbolWithIndex |
( |
std::size_t |
symbolIndex | ) |
const |
Get pointer to symbol from table with specified index
- Parameters
-
symbolIndex | Index stored in symbol |
- Returns
- Pointer to symbol or
nullptr
if symbol with index is not found
◆ hasSymbol() [1/2]
bool retdec::fileformat::SymbolTable::hasSymbol |
( |
const std::string & |
name | ) |
const |
Check if symbol with name name exists
- Parameters
-
- Returns
true
if has symbol with name name, false
otherwise
◆ hasSymbol() [2/2]
bool retdec::fileformat::SymbolTable::hasSymbol |
( |
unsigned long long |
addr | ) |
const |
Check if symbol on address exists
- Parameters
-
- Returns
true
if has symbol on address, false
otherwise
◆ hasSymbols()
bool retdec::fileformat::SymbolTable::hasSymbols |
( |
| ) |
const |
Find out if there are any symbols.
- Returns
true
if there are some symbols, false
otherwise
◆ setName()
void retdec::fileformat::SymbolTable::setName |
( |
const std::string & |
symbolTableName | ) |
|
Sets the name of the symbol table.
- Parameters
-
symbolTableName | Name of the symbol table. |
◆ name
std::string retdec::fileformat::SymbolTable::name |
|
private |
◆ table
std::vector<std::shared_ptr<Symbol> > retdec::fileformat::SymbolTable::table |
|
private |
The documentation for this class was generated from the following files:
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/include/retdec/fileformat/types/symbol_table/symbol_table.h
- /var/cache/acbs/build/acbs.6bu6osb6/retdec/src/fileformat/types/symbol_table/symbol_table.cpp