BitVector Class Reference

#include <BitVector.hh>

Public Member Functions

 BitVector (unsigned char *baseBytePtr, unsigned baseBitOffset, unsigned totNumBits)
void setup (unsigned char *baseBytePtr, unsigned baseBitOffset, unsigned totNumBits)
void putBits (unsigned from, unsigned numBits)
void put1Bit (unsigned bit)
unsigned getBits (unsigned numBits)
unsigned get1Bit ()
Boolean get1BitBoolean ()
void skipBits (unsigned numBits)
unsigned curBitIndex () const
unsigned totNumBits () const
unsigned numBitsRemaining () const
unsigned get_expGolomb ()

Private Attributes

unsigned char * fBaseBytePtr
unsigned fBaseBitOffset
unsigned fTotNumBits
unsigned fCurBitIndex

Detailed Description

Definition at line 28 of file BitVector.hh.

Constructor & Destructor Documentation

BitVector::BitVector ( unsigned char *  baseBytePtr,
unsigned  baseBitOffset,
unsigned  totNumBits 

Member Function Documentation

void BitVector::setup ( unsigned char *  baseBytePtr,
unsigned  baseBitOffset,
unsigned  totNumBits 

Referenced by MP3FrameParams::setBytePointer().

void BitVector::putBits ( unsigned  from,
unsigned  numBits 

void BitVector::put1Bit ( unsigned  bit  ) 

unsigned BitVector::getBits ( unsigned  numBits  ) 

Referenced by MP3FrameParams::getBits().

unsigned BitVector::get1Bit (  ) 

Referenced by MP3FrameParams::get1Bit(), and get1BitBoolean().

Boolean BitVector::get1BitBoolean (  )  [inline]

Definition at line 43 of file BitVector.hh.

References get1Bit().

00043 { return get1Bit() != 0; }

void BitVector::skipBits ( unsigned  numBits  ) 

unsigned BitVector::curBitIndex (  )  const [inline]

Definition at line 47 of file BitVector.hh.

References fCurBitIndex.

00047 { return fCurBitIndex; }

unsigned BitVector::totNumBits (  )  const [inline]

Definition at line 48 of file BitVector.hh.

References fTotNumBits.

00048 { return fTotNumBits; }

unsigned BitVector::numBitsRemaining (  )  const [inline]

Definition at line 49 of file BitVector.hh.

References fCurBitIndex, and fTotNumBits.

00049 { return fTotNumBits - fCurBitIndex; }

unsigned BitVector::get_expGolomb (  ) 

Field Documentation

unsigned char* BitVector::fBaseBytePtr [private]

Definition at line 55 of file BitVector.hh.

unsigned BitVector::fBaseBitOffset [private]

Definition at line 56 of file BitVector.hh.

unsigned BitVector::fTotNumBits [private]

Definition at line 57 of file BitVector.hh.

Referenced by numBitsRemaining(), and totNumBits().

unsigned BitVector::fCurBitIndex [private]

Definition at line 58 of file BitVector.hh.

Referenced by curBitIndex(), and numBitsRemaining().

The documentation for this class was generated from the following file:
Generated on Sun Jan 4 13:15:57 2015 for live by  doxygen 1.5.2