Otawa  0.10
otawa::concept::InstBlock Class Reference

An iterable block of instruction. More...

#include </home/casse/otawa/otawa/src/prog/concepts.h>

Classes

class  InstIter
 Iterator on the instruction of the block. More...
 

Public Member Functions

Address address (void)
 Get the address of the first instruction. More...
 
size_t size (void)
 Get the size of the block. More...
 
Address topAddress (void)
 Address succeeding the last byte of the block. More...
 
int countInsts (void)
 Count the number of instructions. More...
 

Detailed Description

An iterable block of instruction.

Member Function Documentation

Address otawa::concept::InstBlock::address ( void  )

Get the address of the first instruction.

Returns
First instruction address.
int otawa::concept::InstBlock::countInsts ( void  )

Count the number of instructions.

Returns
Number of instructions.
size_t otawa::concept::InstBlock::size ( void  )

Get the size of the block.

Returns
Size in bytes.
Address otawa::concept::InstBlock::topAddress ( void  )

Address succeeding the last byte of the block.

Returns
address() + size().

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