decompiler  1.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ghidra::JumpTable::IndexPair Struct Reference

An address table index and its corresponding out-edge. More...

Public Member Functions

 IndexPair (int4 pos, int4 index)
 Constructor.
 
bool operator< (const IndexPair &op2) const
 Compare by position then by index. More...
 

Static Public Member Functions

static bool compareByPosition (const IndexPair &op1, const IndexPair &op2)
 Compare just by position. More...
 

Public Attributes

int4 blockPosition
 Out-edge index for the basic-block.
 
int4 addressIndex
 Index of address targeting the basic-block.
 

Detailed Description

An address table index and its corresponding out-edge.

Member Function Documentation

◆ compareByPosition()

bool ghidra::JumpTable::IndexPair::compareByPosition ( const IndexPair op1,
const IndexPair op2 
)
inlinestatic

Compare just by position.

Parameters
op1is the first IndexPair to compare
op2is the second IndexPair to compare
Returns
true if op1 is ordered before op2

References blockPosition.

Referenced by ghidra::JumpTable::getIndexByBlock(), and ghidra::JumpTable::numIndicesByBlock().

◆ operator<()

bool ghidra::JumpTable::IndexPair::operator< ( const IndexPair op2) const
inline

Compare by position then by index.

Parameters
op2is the other IndexPair to compare with this
Returns
true if this is ordered before the other IndexPair

References addressIndex, and blockPosition.


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