ROSE 0.11.145.192
Public Member Functions | List of all members
Rose::BinaryAnalysis::BinaryLoaderElf::SymbolMap Class Reference

Description

A mapping from symbol name (with optional version in parentheses) to SymbolMapEntry.

Definition at line 139 of file BinaryLoaderElf.h.

#include <Rose/BinaryAnalysis/BinaryLoaderElf.h>

Inheritance diagram for Rose::BinaryAnalysis::BinaryLoaderElf::SymbolMap:
Inheritance graph
[legend]
Collaboration diagram for Rose::BinaryAnalysis::BinaryLoaderElf::SymbolMap:
Collaboration graph
[legend]

Public Member Functions

const SymbolMapEntrylookup (std::string name) const
 Finds and returns the entry having the specified name.
 
const SymbolMapEntrylookup (std::string name, std::string version) const
 Finds and returns the entry having the specified name and version.
 
void dump (FILE *, const char *prefix) const
 Print debugging information about this SymbolMap.
 

Member Function Documentation

◆ lookup() [1/2]

const SymbolMapEntry * Rose::BinaryAnalysis::BinaryLoaderElf::SymbolMap::lookup ( std::string  name) const

Finds and returns the entry having the specified name.

Returns the null pointer if the name cannot be found.

◆ lookup() [2/2]

const SymbolMapEntry * Rose::BinaryAnalysis::BinaryLoaderElf::SymbolMap::lookup ( std::string  name,
std::string  version 
) const

Finds and returns the entry having the specified name and version.

Returns the null pointer if the name cannot be found. The lookup is performed by enclosing the version string in parentheses (if the version is not empty) and appending it to the symbol name.


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