LLVM API Documentation

llvm::BitSetVector Class Reference

#include <BitSetVector.h>

Collaboration diagram for llvm::BitSetVector:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BitSetVector (unsigned maxSetSize)
unsigned size () const
 size - Return the number of bits tracked by this bit vector...
void reset ()
void set ()
reference operator[] (unsigned n)
iterator begin ()
iterator end ()
bool operator== (const BitSetVector &set2) const
bool operator!= (const BitSetVector &set2) const
bool test (unsigned n) const
bool any () const
bool none () const
unsigned count () const
bool all () const
BitSetVector operator & (const BitSetVector &set2) const
BitSetVector operator| (const BitSetVector &set2) const
BitSetVector operator^ (const BitSetVector &set2) const
BitSetVector operator~ () const
void print (std::ostream &O) const
void dump () const

Friends

bool Disjoint (const BitSetVector &set1, const BitSetVector &set2)

Classes

class  iterator

Detailed Description

Definition at line 35 of file BitSetVector.h.


Constructor & Destructor Documentation

llvm::BitSetVector::BitSetVector ( unsigned  maxSetSize  )  [inline]

Constructor: create a set of the maximum size maxSetSize. The set is initialized to empty.

Definition at line 74 of file BitSetVector.h.


Member Function Documentation

bool llvm::BitSetVector::all (  )  const [inline]

Definition at line 137 of file BitSetVector.h.

References count(), and size().

bool llvm::BitSetVector::any (  )  const [inline]

Definition at line 122 of file BitSetVector.h.

Referenced by none().

iterator llvm::BitSetVector::begin (  )  [inline]

Definition at line 97 of file BitSetVector.h.

References llvm::BitSetVector::iterator::begin().

unsigned llvm::BitSetVector::count (  )  const [inline]

Definition at line 131 of file BitSetVector.h.

Referenced by all().

void llvm::BitSetVector::dump (  )  const [inline]

Definition at line 177 of file BitSetVector.h.

References print().

iterator llvm::BitSetVector::end (  )  [inline]

Definition at line 98 of file BitSetVector.h.

References llvm::BitSetVector::iterator::end().

bool llvm::BitSetVector::none (  )  const [inline]

Definition at line 128 of file BitSetVector.h.

References any().

BitSetVector llvm::BitSetVector::operator & ( const BitSetVector set2  )  const [inline]

Set operations: intersection, union, disjoint union, complement.

Definition at line 144 of file BitSetVector.h.

References getWord(), and maxSize.

bool llvm::BitSetVector::operator!= ( const BitSetVector set2  )  const [inline]

Definition at line 110 of file BitSetVector.h.

bool llvm::BitSetVector::operator== ( const BitSetVector set2  )  const [inline]

Comparison operations: equal, not equal

Definition at line 103 of file BitSetVector.h.

References getWord(), and maxSize.

reference llvm::BitSetVector::operator[] ( unsigned  n  )  [inline]

Definition at line 92 of file BitSetVector.h.

References size().

BitSetVector llvm::BitSetVector::operator^ ( const BitSetVector set2  )  const [inline]

Definition at line 158 of file BitSetVector.h.

References getWord(), and maxSize.

BitSetVector llvm::BitSetVector::operator| ( const BitSetVector set2  )  const [inline]

Definition at line 151 of file BitSetVector.h.

References getWord(), and maxSize.

BitSetVector llvm::BitSetVector::operator~ (  )  const [inline]

Definition at line 165 of file BitSetVector.h.

References ClearUnusedBits(), and getWord().

void llvm::BitSetVector::print ( std::ostream &  O  )  const [inline]

Printing and debugging support

Definition at line 244 of file BitSetVector.h.

References E, and I.

Referenced by dump(), and llvm::operator<<().

void llvm::BitSetVector::reset (  )  [inline]

Modifier methods: reset, set for entire set, operator[] for one element.

Definition at line 83 of file BitSetVector.h.

void llvm::BitSetVector::set (  )  [inline]

Definition at line 87 of file BitSetVector.h.

unsigned llvm::BitSetVector::size (  )  const [inline]

size - Return the number of bits tracked by this bit vector...

Definition at line 78 of file BitSetVector.h.

Referenced by all(), llvm::Disjoint(), llvm::BitSetVector::iterator::end(), llvm::BitSetVector::iterator::operator *(), llvm::BitSetVector::iterator::operator++(), llvm::BitSetVector::iterator::operator--(), operator[](), and test().

bool llvm::BitSetVector::test ( unsigned  n  )  const [inline]

Set membership operations: single element, any, none, count

Definition at line 117 of file BitSetVector.h.

References size().


Friends And Related Function Documentation

bool Disjoint ( const BitSetVector set1,
const BitSetVector set2 
) [friend]

Optimized versions of fundamental comparison operations

Definition at line 261 of file BitSetVector.h.


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