HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_RLEBitArray Class Reference

#include <UT_RLEBitArray.h>

Classes

class  const_iterator
 
class  Node
 

Public Types

enum  { LOWEST_INDEX = INT_MIN }
 
typedef const_iterator iterator
 

Public Member Functions

 UT_RLEBitArray ()
 
 ~UT_RLEBitArray ()
 
 UT_RLEBitArray (const UT_RLEBitArray &v)
 
void swap (UT_RLEBitArray &other)
 
int numBitsSet () const
 
int getBit (int idx) const
 
bool getBitRun (int idx, int &start, int &end) const
 
void setBitTrue (int idx)
 
void setBitFalse (int idx)
 
void setBit (int idx, int value)
 
void setBitRunTrue (int start, int end)
 
int toggleBit (int idx)
 
void clear ()
 
bool isEmpty () const
 
int getNextRun (int &start, int &end, bool first=false)
 
bool iterate (int &currentBit)
 
int64 getMemoryUsage () const
 
void display () const
 
int operator() (int index) const
 
int operator[] (int index) const
 
const UT_RLEBitArrayoperator&= (const UT_RLEBitArray &v)
 
const UT_RLEBitArrayoperator|= (const UT_RLEBitArray &v)
 
const UT_RLEBitArrayoperator^= (const UT_RLEBitArray &v)
 
const UT_RLEBitArrayoperator-= (const UT_RLEBitArray &v)
 
const UT_RLEBitArrayoperator= (const UT_RLEBitArray &v)
 
int operator== (const UT_RLEBitArray &v) const
 
int operator!= (const UT_RLEBitArray &v) const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 

Protected Member Functions

void restartSearch () const
 
void restartSearchForIndex (int idx) const
 
void advanceSearchNode () const
 

Protected Attributes

UT_LinkList myList
 
NodemySearchNode
 
int myLastIndex
 

Detailed Description

Definition at line 27 of file UT_RLEBitArray.h.

Member Typedef Documentation

Definition at line 166 of file UT_RLEBitArray.h.

Member Enumeration Documentation

anonymous enum
Enumerator
LOWEST_INDEX 

Definition at line 30 of file UT_RLEBitArray.h.

Constructor & Destructor Documentation

UT_RLEBitArray::UT_RLEBitArray ( )
inline

Definition at line 32 of file UT_RLEBitArray.h.

UT_RLEBitArray::~UT_RLEBitArray ( )
inline

Definition at line 37 of file UT_RLEBitArray.h.

UT_RLEBitArray::UT_RLEBitArray ( const UT_RLEBitArray v)

Member Function Documentation

void UT_RLEBitArray::advanceSearchNode ( ) const
inlineprotected

Definition at line 244 of file UT_RLEBitArray.h.

const_iterator UT_RLEBitArray::begin ( void  ) const
inline

Definition at line 168 of file UT_RLEBitArray.h.

iterator UT_RLEBitArray::begin ( void  )
inline

Definition at line 169 of file UT_RLEBitArray.h.

void UT_RLEBitArray::clear ( )
void UT_RLEBitArray::display ( ) const
const_iterator UT_RLEBitArray::end ( void  ) const
inline

Definition at line 170 of file UT_RLEBitArray.h.

iterator UT_RLEBitArray::end ( void  )
inline

Definition at line 171 of file UT_RLEBitArray.h.

int UT_RLEBitArray::getBit ( int  idx) const
inline

Definition at line 251 of file UT_RLEBitArray.h.

bool UT_RLEBitArray::getBitRun ( int  idx,
int start,
int end 
) const
int64 UT_RLEBitArray::getMemoryUsage ( ) const
int UT_RLEBitArray::getNextRun ( int start,
int end,
bool  first = false 
)
bool UT_RLEBitArray::isEmpty ( ) const
bool UT_RLEBitArray::iterate ( int currentBit)
int UT_RLEBitArray::numBitsSet ( ) const
inline

Definition at line 211 of file UT_RLEBitArray.h.

int UT_RLEBitArray::operator!= ( const UT_RLEBitArray v) const
const UT_RLEBitArray& UT_RLEBitArray::operator&= ( const UT_RLEBitArray v)
int UT_RLEBitArray::operator() ( int  index) const
inline

Definition at line 83 of file UT_RLEBitArray.h.

const UT_RLEBitArray& UT_RLEBitArray::operator-= ( const UT_RLEBitArray v)
const UT_RLEBitArray& UT_RLEBitArray::operator= ( const UT_RLEBitArray v)
int UT_RLEBitArray::operator== ( const UT_RLEBitArray v) const
int UT_RLEBitArray::operator[] ( int  index) const
inline

Definition at line 84 of file UT_RLEBitArray.h.

const UT_RLEBitArray& UT_RLEBitArray::operator^= ( const UT_RLEBitArray v)
const UT_RLEBitArray& UT_RLEBitArray::operator|= ( const UT_RLEBitArray v)
void UT_RLEBitArray::restartSearch ( ) const
inlineprotected

Definition at line 228 of file UT_RLEBitArray.h.

void UT_RLEBitArray::restartSearchForIndex ( int  idx) const
inlineprotected

Definition at line 235 of file UT_RLEBitArray.h.

void UT_RLEBitArray::setBit ( int  idx,
int  value 
)
inline

Definition at line 54 of file UT_RLEBitArray.h.

void UT_RLEBitArray::setBitFalse ( int  idx)
void UT_RLEBitArray::setBitRunTrue ( int  start,
int  end 
)
void UT_RLEBitArray::setBitTrue ( int  idx)
void UT_RLEBitArray::swap ( UT_RLEBitArray other)
int UT_RLEBitArray::toggleBit ( int  idx)

Member Data Documentation

int UT_RLEBitArray::myLastIndex
mutableprotected

Definition at line 204 of file UT_RLEBitArray.h.

UT_LinkList UT_RLEBitArray::myList
protected

Definition at line 202 of file UT_RLEBitArray.h.

Node* UT_RLEBitArray::mySearchNode
mutableprotected

Definition at line 203 of file UT_RLEBitArray.h.


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