|
ARB
|
#include <ps_bitset.hxx>


Public Types | |
| typedef set< long > | IndexSet |
Public Member Functions | |
| long | getTrueIndices (IndexSet &_index_set, const long _fill_index) |
| long | getFalseIndices (IndexSet &_index_set, const long _fill_index) |
| long | getCountOfTrues (const long _fill_index=-1) |
| long | getMaxUsedIndex () const |
| long | getCapacity () const |
| virtual bool | Get (const long _index) |
| virtual bool | Set (const long _index, const bool _value) |
| virtual void | setTrue (const long _index) |
| virtual void | setFalse (const long _index) |
| void | invert () |
| void | x_or (const PS_BitSet *_other_set) |
| void | print (FILE *out, const bool _header, const long _fill_index) |
| bool | save (PS_FileBuffer *_file) |
| bool | load (PS_FileBuffer *_file, const long _fill_index) |
| bool | copy (const PS_BitSet *_other_bitset) |
| virtual bool | reserve (const long _capacity) |
| PS_BitSet (const bool _bias, const long _capacity) | |
| PS_BitSet (PS_FileBuffer *_file, const long _fill_index=-1) | |
| virtual | ~PS_BitSet () |
Protected Member Functions | |
| PS_BitSet (const bool _bias, const long _max_index, const long _capacity) | |
Protected Attributes | |
| unsigned char * | data |
| bool | bias |
| long | max_index |
| long | capacity |
Definition at line 11 of file ps_bitset.hxx.
| typedef set<long> PS_BitSet::IndexSet |
Definition at line 27 of file ps_bitset.hxx.
|
inlineprotected |
Definition at line 19 of file ps_bitset.hxx.
|
inlineexplicit |
Definition at line 52 of file ps_bitset.hxx.
|
inlineexplicit |
Definition at line 57 of file ps_bitset.hxx.
|
inlinevirtual |
Definition at line 62 of file ps_bitset.hxx.
| long PS_BitSet::getTrueIndices | ( | PS_BitSet::IndexSet & | _index_set, |
| const long | _fill_index = -1 |
||
| ) |
Definition at line 123 of file ps_bitset.hxx.
References bias, data, max_index, and ps_assert.
Referenced by PS_BitMap::getTrueIndicesFor(), and PS_BitMap::printGNUplot().
| long PS_BitSet::getFalseIndices | ( | PS_BitSet::IndexSet & | _index_set, |
| const long | _fill_index = -1 |
||
| ) |
Definition at line 99 of file ps_bitset.hxx.
References bias, data, max_index, and ps_assert.
Referenced by PS_BitMap::getFalseIndicesFor().
Definition at line 147 of file ps_bitset.hxx.
References bias, data, max_index, and ps_assert.
Referenced by PS_BitMap::getCountOfTrues().
|
inline |
Definition at line 33 of file ps_bitset.hxx.
References max_index.
|
inline |
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 200 of file ps_bitset.hxx.
References data, ps_assert, and reserve().
Referenced by PS_BitMap::get(), and print().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 169 of file ps_bitset.hxx.
References data, max_index, ps_assert, and reserve().
Referenced by PS_BitMap::set().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 184 of file ps_bitset.hxx.
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 192 of file ps_bitset.hxx.
| void PS_BitSet::invert | ( | ) |
Definition at line 235 of file ps_bitset.hxx.
References capacity, and data.
Referenced by PS_BitMap::invert().
| void PS_BitSet::x_or | ( | const PS_BitSet * | _other_set | ) |
Definition at line 242 of file ps_bitset.hxx.
References capacity, and data.
Referenced by PS_BitMap::x_or().
Definition at line 249 of file ps_bitset.hxx.
References bias, capacity, fputc(), Get(), and max_index.
Referenced by PS_BitMap::print().
| bool PS_BitSet::save | ( | PS_FileBuffer * | _file | ) |
Definition at line 261 of file ps_bitset.hxx.
References bias, PS_FileBuffer::BUFFER_SIZE, data, PS_FileBuffer::isReadonly(), max_index, PS_FileBuffer::put(), PS_FileBuffer::put_char(), and PS_FileBuffer::put_long().
Referenced by PS_BitMap::save().
| bool PS_BitSet::load | ( | PS_FileBuffer * | _file, |
| const long | _fill_index = -1 |
||
| ) |
Definition at line 279 of file ps_bitset.hxx.
References bias, PS_FileBuffer::BUFFER_SIZE, capacity, data, PS_FileBuffer::get(), PS_FileBuffer::get_char(), PS_FileBuffer::get_long(), max_index, and reserve().
Referenced by PS_BitSet(), and FINAL_TYPE< SEQTYPE >::PS_BitSet_Fast().
| bool PS_BitSet::copy | ( | const PS_BitSet * | _other_bitset | ) |
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >, FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.
Definition at line 216 of file ps_bitset.hxx.
References bias, capacity, and data.
Referenced by copy(), Get(), load(), PS_BitSet(), Set(), setFalse(), and setTrue().
|
protected |
Definition at line 13 of file ps_bitset.hxx.
Referenced by copy(), Get(), getCountOfTrues(), getFalseIndices(), getTrueIndices(), invert(), load(), reserve(), save(), Set(), setFalse(), setTrue(), and x_or().
|
protected |
Definition at line 15 of file ps_bitset.hxx.
Referenced by copy(), getCountOfTrues(), getFalseIndices(), getTrueIndices(), load(), print(), reserve(), and save().
|
protected |
Definition at line 16 of file ps_bitset.hxx.
Referenced by copy(), getCountOfTrues(), getFalseIndices(), getMaxUsedIndex(), getTrueIndices(), load(), print(), save(), Set(), setFalse(), and setTrue().
|
protected |
Definition at line 17 of file ps_bitset.hxx.
Referenced by copy(), getCapacity(), invert(), load(), print(), reserve(), and x_or().
1.8.8