Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

BBQ Class Reference

List of all members.

Public Methods

void clear ()
boolean contains (BasicBlock b)
boolean isEmpty ()
BasicBlock pull () throws NoSuchElementException
void push (BasicBlock b)
int size ()

Private Attributes

Vector q = new Vector()

Detailed Description

A queue of BasicBlocks.
Author:
Clark Verbrugge
See also:
BasicBlock

Definition at line 117 of file BBQ.java.


Member Function Documentation

void BBQ::clear   [inline]
 

Empties the queue of all blocks (and resets their inq flags).

Definition at line 122 of file BBQ.java.

boolean BBQ::contains BasicBlock   b [inline]
 

Answers whether a block is in the queue or not.

Parameters:
BasicBlock   in question.
Returns:
true if it is, false if it ain't.
See also:
BasicBlock::inq

Definition at line 135 of file BBQ.java.

boolean BBQ::isEmpty   [inline]
 

Answers whether the queue is empty

Returns:
true if it is, false if it ain't.

Definition at line 139 of file BBQ.java.

Referenced by CFG::jimpleTargetFixup(), and CFG::processTargetFixup().

BasicBlock BBQ::pull   [inline]
 

Removes the first block in the queue (and resets its inq flag).

Returns:
BasicBlock which was first.
Exceptions:
java   .util.NoSuchElementException if the queue is empty.
See also:
BasicBlock::inq

Definition at line 145 of file BBQ.java.

Referenced by CFG::processTargetFixup().

void BBQ::push BasicBlock   b [inline]
 

Adds a block to the end of the queue, but only if its inq flag is false.

Parameters:
b   the Basic Block in question.
See also:
BasicBlock::inq

Definition at line 158 of file BBQ.java.

Referenced by CFG::jimpleTargetFixup(), and CFG::processTargetFixup().

int BBQ::size   [inline]
 

Answers the size of the queue.

Returns:
size of the queue.

Definition at line 167 of file BBQ.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:05:17 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001