retdec
Private Attributes | List of all members
retdec::fileinfo::Relocation Class Reference

#include <relocation.h>

Collaboration diagram for retdec::fileinfo::Relocation:
Collaboration graph
[legend]

Public Member Functions

Getters
std::string getSymbolName () const
 
std::string getOffsetStr (std::ios_base &(*format)(std::ios_base &)) const
 
std::string getSymbolValueStr () const
 
std::string getRelocationTypeStr () const
 
std::string getAddendStr () const
 
std::string getCalculatedValueStr () const
 
Setters
void setSymbolName (std::string name)
 
void setOffset (unsigned long long value)
 
void setSymbolValue (unsigned long long value)
 
void setRelocationType (unsigned long long type)
 
void setAddend (long long value)
 
void setCalculatedValue (long long value)
 

Private Attributes

std::string symbolName
 name of associated symbol More...
 
unsigned long long offset = std::numeric_limits<unsigned long long>::max()
 relocation offset More...
 
unsigned long long symbolValue = std::numeric_limits<unsigned long long>::max()
 value of associated symbol More...
 
unsigned long long relocationType = std::numeric_limits<unsigned long long>::max()
 type of relocation More...
 
long long addend = std::numeric_limits<long long>::min()
 relocation addend More...
 
long long calculatedValue = std::numeric_limits<long long>::min()
 calculated value of relocation More...
 

Detailed Description

Class for one relocation

Value std::numeric_limits<unsigned long long>::max() mean unspecified value or error for unsigned integer types. Value std::numeric_limits<long long>::min() mean unspecified value or error for signed integer types.

Member Function Documentation

◆ getAddendStr()

std::string retdec::fileinfo::Relocation::getAddendStr ( ) const

Get relocation addend

Returns
Relocation addend

◆ getCalculatedValueStr()

std::string retdec::fileinfo::Relocation::getCalculatedValueStr ( ) const

Get calculated value

Returns
Calculated value

◆ getOffsetStr()

std::string retdec::fileinfo::Relocation::getOffsetStr ( std::ios_base &(*)(std::ios_base &)  format) const

Get relocation offset

Parameters
formatFormat of result (e.g. std::dec, std::hex)
Returns
Relocation offset

◆ getRelocationTypeStr()

std::string retdec::fileinfo::Relocation::getRelocationTypeStr ( ) const

Get relocation type

Returns
Type of relocation

◆ getSymbolName()

std::string retdec::fileinfo::Relocation::getSymbolName ( ) const

Get name of associated symbol

Returns
Name of associated symbol

◆ getSymbolValueStr()

std::string retdec::fileinfo::Relocation::getSymbolValueStr ( ) const

Get value of associated symbol

Returns
Value of associated symbol

◆ setAddend()

void retdec::fileinfo::Relocation::setAddend ( long long  value)

Set relocation addend

Parameters
valueRelocation addend

◆ setCalculatedValue()

void retdec::fileinfo::Relocation::setCalculatedValue ( long long  value)

Set calculated value

Parameters
valueCalculated value

◆ setOffset()

void retdec::fileinfo::Relocation::setOffset ( unsigned long long  value)

Set relocation offset

Parameters
valueRelocation offset

◆ setRelocationType()

void retdec::fileinfo::Relocation::setRelocationType ( unsigned long long  type)

Set type of relocation

Parameters
typeType of relocation

◆ setSymbolName()

void retdec::fileinfo::Relocation::setSymbolName ( std::string  name)

Set name of associated symbol

Parameters
nameName of symbol associated with relocation

◆ setSymbolValue()

void retdec::fileinfo::Relocation::setSymbolValue ( unsigned long long  value)

Set value of symbol associated with relocation

Parameters
valueValue of symbol associated with relocation

Member Data Documentation

◆ addend

long long retdec::fileinfo::Relocation::addend = std::numeric_limits<long long>::min()
private

relocation addend

◆ calculatedValue

long long retdec::fileinfo::Relocation::calculatedValue = std::numeric_limits<long long>::min()
private

calculated value of relocation

◆ offset

unsigned long long retdec::fileinfo::Relocation::offset = std::numeric_limits<unsigned long long>::max()
private

relocation offset

◆ relocationType

unsigned long long retdec::fileinfo::Relocation::relocationType = std::numeric_limits<unsigned long long>::max()
private

type of relocation

◆ symbolName

std::string retdec::fileinfo::Relocation::symbolName
private

name of associated symbol

◆ symbolValue

unsigned long long retdec::fileinfo::Relocation::symbolValue = std::numeric_limits<unsigned long long>::max()
private

value of associated symbol


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