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

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

Public Member Functions

 IndexPair (int4 pos, int4 index)
 Index of address targetting the basic-block. More...
 
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
 

Detailed Description

An address table index and its corresponding out-edge.

Constructor & Destructor Documentation

JumpTable::IndexPair::IndexPair ( int4  pos,
int4  index 
)
inline

Index of address targetting the basic-block.

Constructor

Member Function Documentation

bool 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 JumpTable::getIndexByBlock(), and JumpTable::numIndicesByBlock().

bool 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 blockPosition.


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