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

SetUtil Class Reference

List of all members.

Static Public Methods

Set bitSetToStmtSet (BitSet bitSet, StmtList stmtList)
boolean emptyBitSet (BitSet bs)
boolean emptyBitSetWithLength (BitSet bs, int length)
void initializeBitSetToAllFalse (BitSet bs)
void initializeBitSetToAllTrue (BitSet bs)
Set setIntersection (Set set1, Set set2)

Static Private Methods

BitSet bitSetAndNot (BitSet originalSet, BitSet notSet)
int logicalSizeOfBitSet (BitSet bs)
BitSet stmtArrayToBitSet (Stmt[] stmtSet, StmtList localStmtList)
BitSet stmtSetToBitSet (Set stmtSet, StmtList localStmtList)

Detailed Description

This class contains some utilities for operations of BitSet and Set.
Currently, all methods in this class are static.

Definition at line 45 of file SetUtil.java.


Member Function Documentation

BitSet SetUtil::bitSetAndNot BitSet   originalSet,
BitSet   notSet
[inline, static, private]
 

Clear elements of a bit set in terms of a ruler bit set.

Returns:
result bit set.
Parameters:
orignalSet   a bit set need to be cleared by a ruler.
notSet   ruler bit set.

Definition at line 54 of file SetUtil.java.

Set SetUtil::bitSetToStmtSet BitSet   bitSet,
StmtList   stmtList
[inline, static]
 

Transform a bit set of statements into a set of Stmt.

Returns:
a set of Stmt which is corresponding to the bitSet.
Parameters:
bitSet   a bit set of statements indexed with stmtList.
stmtList   statement list.

Definition at line 69 of file SetUtil.java.

boolean SetUtil::emptyBitSet BitSet   bs [inline, static]
 

See if a bit set is empty

Returns:
true if it is empty; false otherwise.
Parameters:
bs   query bit set.

Definition at line 84 of file SetUtil.java.

boolean SetUtil::emptyBitSetWithLength BitSet   bs,
int   length
[inline, static]
 

See if a bit set is empty

Returns:
true if it is empty; false otherwise.
Parameters:
bs   query bit set.

Definition at line 96 of file SetUtil.java.

void SetUtil::initializeBitSetToAllFalse BitSet   bs [inline, static]
 

Insert the method's description here. Creation date: (00-12-6 11:01:22)

Parameters:
bs   java.util.BitSet

Definition at line 107 of file SetUtil.java.

void SetUtil::initializeBitSetToAllTrue BitSet   bs [inline, static]
 

Insert the method's description here. Creation date: (00-12-6 11:01:22)

Parameters:
bs   java.util.BitSet

Definition at line 116 of file SetUtil.java.

int SetUtil::logicalSizeOfBitSet BitSet   bs [inline, static, private]
 

Get logical size of a bit set. Logical size means how many element in a bit set is set to true.

Returns:
logical size of the bit set.
Parameters:
bs   query bit set.

Definition at line 127 of file SetUtil.java.

Set SetUtil::setIntersection Set   set1,
Set   set2
[inline, static]
 

Get intersection of two Set.

Returns:
intersection of two Set.
Parameters:
set1   first set.
set2   second set.

Definition at line 140 of file SetUtil.java.

BitSet SetUtil::stmtArrayToBitSet Stmt   stmtSet[],
StmtList   localStmtList
[inline, static, private]
 

Transform an array of Stmt to a bit set indexed with given statement list.

Returns:
a bit set of statement indexed with localStmtList.
Parameters:
stmtSet   a statement set for transforming.
localStmtList   a statement list for indexing.

Definition at line 157 of file SetUtil.java.

BitSet SetUtil::stmtSetToBitSet Set   stmtSet,
StmtList   localStmtList
[inline, static, private]
 

Transform a Set of Stmt to a bit set indexed with a given stmatement list.

Returns:
a bit set of statement indexed with localStmtList.
Parameters:
stmtSet   a set of Stmt.
localStmtList   statement list for indexing.

Definition at line 173 of file SetUtil.java.


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