#include <BitField.h>
Public Types | |
| typedef CBitField::CBFIterator | bf_iterator |
Public Member Functions | |
| CBitField () | |
| CBitField (long lBits) | |
| CBitField (const CBitField ¶m) | |
| virtual | ~CBitField () |
| void | load (FILE *file) |
| void | save (FILE *file) |
| long | bits (void) |
| void | setBit (long lBit, bool bSet) |
| void | zero (void) |
| bool | getBit (long lBit) const |
| void | negate (void) |
| CBitField & | operator &= (const CBitField ¶m) |
| CBitField & | operator|= (const CBitField ¶m) |
| CBitField & | operator^= (const CBitField ¶m) |
| CBitField & | operator= (const CBitField ¶m) |
| CBitField & | partialCopy (const CBitField ¶m) |
| bool | operator== (const CBitField ¶m) |
| bool | operator!= (const CBitField ¶m) |
| CBitProxy | operator[] (long pos) |
| const CBitProxy | operator[] (long pos) const |
| long | getSet (void) |
| long | countSet (void) |
| void | setSize (long lNewBits) |
Friends | |
| class | CBitProxy |
| class | CBFIterator |
Classes | |
| class | CBFIterator |
| class | CBitProxy |
an iterator and proxy for [] use is also provided as local classes
Definition at line 27 of file BitField.h.
|
|
a iterator class for bitfields ... the typedef shit is just because there is somewhere an iterator struct in std ... so we had to do something to stop the compiler nagging around if you are accessing data in the bitfield sequentially, using the iterators is significantly faster than using random access methods!
|
|
|
standard constructor
Definition at line 252 of file BitField.h. |
|
|
intialized bitfield with a given count of bits
Definition at line 263 of file BitField.h. |
|
|
copy constructor
Definition at line 276 of file BitField.h. |
|
|
Definition at line 309 of file BitField.h. |
|
|
Definition at line 613 of file BitField.h. References CBitField::CBFIterator::getBit(), CBitField::CBFIterator::initialize(), and CBitField::CBFIterator::inRange(). |
|
|
returns the value of a specified bit
Definition at line 360 of file BitField.h. Referenced by CBitField::CBitProxy::operator bool(), and CBitField::CBitProxy::operator=(). |
|
|
Definition at line 583 of file BitField.h. References CBitField::CBFIterator::getBit(), CBitField::CBFIterator::getPos(), CBitField::CBFIterator::initialize(), CBitField::CBFIterator::inRange(), and CBitField::CBFIterator::setPos(). |
|
|
load bitfield from a file specified by parameter
Definition at line 21 of file BitField.cpp. |
|
|
negate the whole bitfield
Definition at line 379 of file BitField.h. |
|
|
bitwise AND operator
Definition at line 405 of file BitField.h. |
|
|
negate the == operator
Definition at line 553 of file BitField.h. |
|
|
copy operator
Definition at line 462 of file BitField.h. |
|
|
compare operator. This doesnt work by comparing each bit for itself, but the total array elements. this is usually 32 times faster.
Definition at line 512 of file BitField.h. |
|
|
[] const operator
Definition at line 573 of file BitField.h. References CBitProxy. |
|
|
[] operator using the CBitProxy class as return parameter this way we can intuitively use the []
Definition at line 563 of file BitField.h. References CBitProxy. |
|
|
bitwise XOR operator
Definition at line 443 of file BitField.h. |
|
|
bitwise OR operator
Definition at line 424 of file BitField.h. |
|
|
copy all that you can get ... still not finished I guess, but I'm not sure
Definition at line 482 of file BitField.h. |
|
|
saves bitfield to some file
Definition at line 29 of file BitField.cpp. |
|
||||||||||||
|
sets a bit
Definition at line 321 of file BitField.h. Referenced by CBitField::CBitProxy::operator=(). |
|
|
sets the size of the bitfield to a new one
Definition at line 633 of file BitField.h. Referenced by CClassifiedVoxelFieldRLEPosition::encode(). |
|
|
reset bitfield vector
Definition at line 345 of file BitField.h. |
1.4.3-20050530