Classes | Public Member Functions | Public Attributes

awUtil Class Reference

Search for all occurrences

Detailed Description

awUtil::BitField acts as an array of booleans with a preset size.

You have to manually set the size and resizing it will reset the values back to false.

#include <awUtilBitField.h>

List of all members.

Classes

class   ArrayN
class   BitField128
  awUtil::BitField128 acts as an array of booleans with the maximum size of 128. More...
class   BitField256
  awUtil::BitField256 acts as an array of booleans with the maximum size of 256. More...
class   BitField32
  awUtil::BitField32 acts as an array of booleans with the maximum size of 32. More...
class   BitField64
  awUtil::BitField64 acts as an array of booleans with the maximum size of 64. More...
class   BitFieldAuto
  awUtil::BitFieldAuto acts as an array of booleans with no maximum size. More...
class   BitRef
  BitRef class should not be used directly. More...
class   BitRef128
  BitRef128 class should not be used directly. More...
class   BitRef256
  BitRef256 class should not be used directly. More...
class   BitRef32
  BitRef32 class should not be used directly. More...
class   BitRef64
  BitRef64 class should not be used directly. More...
class   BitRefAuto
  BitRefAuto class should not be used directly. More...
class   Slice
class   Slice< T, 0 >

Public Member Functions

  IntRange1d ()
  IntRange1d (int pos, int size)
  IntRange1d (const IntRange1d &)
void  set (int pos, int size)
void  setFromMinMax (int min, int max)
void  include (const IntRange1d &)
int  min () const
int  max () const
bool  overlap (const IntRange1d &) const
bool  contains (int n) const
int  clamp (int n) const
int  wrap (int n) const
  IntRange2d ()
  IntRange2d (const IntRange2d &)
void  set (int posx, int posy, int sizex, int sizey)
void  include (const IntRange2d &)
IntRange1d  operator[] (int axis) const
int  min (int axis) const
int  max (int axis) const
int  area () const
bool  contains (int axis, int n) const
int  clamp (int axis, int n) const
int  wrap (int axis, int n) const
  BitField ()
  BitField (int sizeInBits)
template<typename Op >
  BitField (const BitFieldOp< Op > &op)
  ~BitField ()
  BitField (const BitField &)
BitField &  operator= (const BitField &)
template<typename Op >
BitField &  operator= (const BitFieldOp< Op > &op)
void  resizeAndReset (int)
int  maxAvailableBits () const
void  resetAll ()
void  setAll ()
BitRef  operator[] (int)
bool  operator[] (int) const
bool  operator== (const BitField &) const
bool  operator!= (const BitField &) const
BitField &  setBit (int, bool)
bool  testBit (int) const
int  numBitsSet () const
bool  anySet () const
bool  allSet () const
template<typename Op >
BitField &  operator^= (const BitFieldOp< Op > &op)
template<typename Op >
BitField &  operator&= (const BitFieldOp< Op > &op)
template<typename Op >
BitField &  operator|= (const BitFieldOp< Op > &op)
BitField &  operator^= (const BitField &mask)
BitField &  operator&= (const BitField &mask)
BitField &  operator|= (const BitField &mask)
const aw::vector< uint32_t > &  bits () const

Public Attributes

int  pos
int  size

Constructor & Destructor Documentation

~BitField ( )

Member Function Documentation

IntRange1d ( )
IntRange1d ( int  pos,
int  size 
)
IntRange1d ( const IntRange1d &  )
void set ( int  pos,
int  size 
) [inline]
void setFromMinMax ( int  min,
int  max 
) [inline]
void include ( const IntRange1d &  )
int min ( ) const [inline]
int max ( ) const [inline]
bool overlap ( const IntRange1d &  ) const [inline]
bool contains ( int  n ) const
int clamp ( int  n ) const
int wrap ( int  n ) const
IntRange2d ( )
IntRange2d ( const IntRange2d &  )
void set ( int  posx,
int  posy,
int  sizex,
int  sizey 
) [inline]
void include ( const IntRange2d &  )
IntRange1d operator[] ( int  axis ) const [inline]
int min ( int  axis ) const [inline]
int max ( int  axis ) const [inline]
int area ( ) const [inline]
bool contains ( int  axis,
int  n 
) const
int clamp ( int  axis,
int  n 
) const
int wrap ( int  axis,
int  n 
) const
BitField ( )
BitField ( int  sizeInBits )
BitField ( const BitFieldOp< Op > &  op )
BitField ( const BitField &  )
BitField& operator= ( const BitField &  )
BitField& operator= ( const BitFieldOp< Op > &  op )
void resizeAndReset ( int  )
int maxAvailableBits ( ) const [inline]
void resetAll ( )
void setAll ( )
BitRef operator[] ( int  ) [inline]
bool operator[] ( int  ) const [inline]
bool operator== ( const BitField &  ) const
bool operator!= ( const BitField &  ) const [inline]
BitField& setBit ( int  ,
bool   
)
bool testBit ( int  ) const [inline]
int numBitsSet ( ) const [inline]
bool anySet ( ) const [inline]
bool allSet ( ) const [inline]
BitField& operator^= ( const BitFieldOp< Op > &  op )
BitField& operator&= ( const BitFieldOp< Op > &  op )
BitField& operator|= ( const BitFieldOp< Op > &  op )
BitField& operator^= ( const BitField &  mask )
BitField& operator&= ( const BitField &  mask )
BitField& operator|= ( const BitField &  mask )
const aw::vector< uint32_t >& bits ( ) const

Member Data Documentation

int pos
int size

awUtil awUtil awUtil awUtil awUtil awUtil awUtil awUtil awUtil awUtil
awUtil awUtil awUtil awUtil awUtil awUtil awUtil awUtil awUtil awUtil