ROSE
0.11.66.0
|
class FunctionInfo Combines all the information to uniquely identify a single function in one object.
Definition at line 24 of file FunctionInfo.h.
#include <FunctionInfo.h>
Public Member Functions | |
FunctionInfo (const std::string &ifuncName, const std::string &ifuncHash, const std::string &ilibHash) | |
FunctionInfo. More... | |
FunctionInfo (const Rose::BinaryAnalysis::Partitioner2::Partitioner &partitioner, Rose::BinaryAnalysis::Partitioner2::Function::Ptr function, const std::string &ilibHash) | |
FunctionInfo. More... | |
FunctionInfo (const Rose::BinaryAnalysis::Partitioner2::Partitioner &partitioner, Rose::BinaryAnalysis::Partitioner2::Function::Ptr function) | |
FunctionInfo. More... | |
FunctionInfo (const Rose::BinaryAnalysis::Partitioner2::Partitioner &partitioner, Rose::BinaryAnalysis::Partitioner2::Function::Ptr function, LibraryInfo &libInfo) | |
FunctionInfo. More... | |
FunctionInfo (const std::string &ifuncHash) | |
FunctionInfo. More... | |
FunctionInfo (const std::string &ifuncHash, Rose::BinaryAnalysis::Partitioner2::Function::Ptr function) | |
FunctionInfo. More... | |
bool | operator== (const FunctionInfo &rhs) |
Static Public Member Functions | |
static std::string | getHash (const Rose::BinaryAnalysis::Partitioner2::Partitioner &partitioner, Rose::BinaryAnalysis::Partitioner2::Function::Ptr function) |
Public Attributes | |
std::string | funcName |
std::string | funcHash |
std::string | libHash |
Rose::BinaryAnalysis::Partitioner2::Function::Ptr | binaryFunction |
Friends | |
bool | operator< (const FunctionInfo &lhs, const FunctionInfo &rhs) |
|
inline |
Constructor. Combines all the information required to identify a function. This constructor allows the user to define everything.
[in] | funcName | Name of the function to add |
[in] | funcHash | Unique Hash of the function to add (Please use Fowler-Noll-Vo HasherFnv class in Combinatorics.h) |
[in] | libHash | Unique Hash of the library this function belongs to. The Library should already be in the database. |
Definition at line 40 of file FunctionInfo.h.
|
inline |
Constructor. Combines all the information required to identify a function. This constructor constructs the hash from the SgAsmFunction node. Note that currently on FNV hasher is used. This should be an option.
[in] | partitioner | Required to get the basic blocks of the function |
[in] | function | Binary AST Function Node |
[in] | libHash | Unique Hash of the library this function belongs to. The Library should already be in the database. |
Definition at line 59 of file FunctionInfo.h.
|
inline |
Constructor. Combines all the information required to identify a function. This constructor constructs the hash from the SgAsmFunction node. Note that currently on FNV hasher is used. This should be an option.
[in] | partitioner | Required to get the basic blocks of the function |
[in] | function | Binary AST Function Node |
Definition at line 80 of file FunctionInfo.h.
|
inline |
Constructor. Combines all the information required to identify a function. This constructor constructs the hash from the SgAsmFunction node. Note that currently on FNV hasher is used. This should be an option.
[in] | partitioner | Required to get the basic blocks of the function |
[in] | function | Binary AST Function Node |
[in] | libInfo | LibraryInfo that should be in the database |
Definition at line 101 of file FunctionInfo.h.
|
inline |
Constructor. Only takes the hash. (Never used? Nomrmally there is a binaryFunction availible as well.) Rest to be filled in from matching in the database.
[in] | funcHash | Unique Hash of the function |
Definition at line 116 of file FunctionInfo.h.
|
inline |
Constructor. Only takes the hash and the binaryFunction. Rest to be filled in from matching in the database.
[in] | funcHash | Unique Hash of the function to add (Please use Fowler-Noll-Vo HasherFnv class in Combinatorics.h) |
[in] | binaryFunction | from the partitioner |
Definition at line 129 of file FunctionInfo.h.