ARB
|
#include <ps_bitmap.hxx>
Public Member Functions | |
virtual long | getTrueIndicesFor (const long _index, PS_BitSet::IndexSet &_index_set) |
virtual long | getFalseIndicesFor (const long _index, PS_BitSet::IndexSet &_index_set) |
virtual long | getCountOfTrues () |
virtual bool | get (const long _row, const long _col) |
virtual bool | set (const long _row, const long _col, const bool _value) |
virtual void | setTrue (const long _row, const long _col)=0 |
virtual void | setFalse (const long _row, const long _col)=0 |
bool | triangle_get (const long _row, const long _col) |
bool | triangle_set (const long _row, const long _col, const bool _value) |
void | invert () |
void | x_or (const PS_BitMap *_other_map) |
virtual void | print (FILE *out) |
virtual void | printGNUplot (const char *_title, char *_buffer, PS_FileBuffer *_file) |
bool | save (PS_FileBuffer *_file) |
virtual bool | load (PS_FileBuffer *_file) |
bool | copy (const PS_BitMap *_other_bitmap) |
virtual bool | reserve (const long _capacity) |
PS_BitMap (const bool _bias, const long _capacity) | |
PS_BitMap (PS_FileBuffer *_file) | |
virtual | ~PS_BitMap () |
Protected Member Functions | |
virtual bool | do_reserve (const long _capacity, const bool _init_sets) |
PS_BitMap (const bool _bias, const long _max_row, const long _capacity) | |
Protected Attributes | |
PS_BitSet ** | data |
bool | bias |
long | max_row |
long | capacity |
Definition at line 11 of file ps_bitmap.hxx.
|
inlineprotected |
Definition at line 22 of file ps_bitmap.hxx.
|
inlineexplicit |
Definition at line 57 of file ps_bitmap.hxx.
References capacity.
|
inlineexplicit |
Definition at line 68 of file ps_bitmap.hxx.
|
inlinevirtual |
Definition at line 73 of file ps_bitmap.hxx.
References capacity.
|
protectedvirtual |
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 201 of file ps_bitmap.hxx.
References data, PS_BitSet::getTrueIndices(), and max_row.
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 212 of file ps_bitmap.hxx.
References data, PS_BitSet::getFalseIndices(), and max_row.
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 223 of file ps_bitmap.hxx.
References data, PS_BitSet::getCountOfTrues(), and max_row.
Reimplemented in FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.
Definition at line 240 of file ps_bitmap.hxx.
References data, PS_BitSet::Get(), and reserve().
Reimplemented in FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.
Definition at line 233 of file ps_bitmap.hxx.
References data, max_row, reserve(), and PS_BitSet::Set().
Referenced by runtests(), and triangle_set().
Implemented in FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.
Implemented in FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.
Definition at line 256 of file ps_bitmap.hxx.
Definition at line 246 of file ps_bitmap.hxx.
References set().
void PS_BitMap::invert | ( | ) |
Definition at line 302 of file ps_bitmap.hxx.
References data, PS_BitSet::invert(), and max_row.
void PS_BitMap::x_or | ( | const PS_BitMap * | _other_map | ) |
Definition at line 309 of file ps_bitmap.hxx.
References data, max_row, and PS_BitSet::x_or().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 316 of file ps_bitmap.hxx.
References bias, capacity, data, max_row, and PS_BitSet::print().
Referenced by runtests().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >.
Definition at line 325 of file ps_bitmap.hxx.
References bias, capacity, data, PS_FileBuffer::flush(), PS_BitSet::getTrueIndices(), max_row, and PS_FileBuffer::put().
bool PS_BitMap::save | ( | PS_FileBuffer * | _file | ) |
Definition at line 349 of file ps_bitmap.hxx.
References bias, data, PS_FileBuffer::isReadonly(), max_row, PS_FileBuffer::put_char(), PS_FileBuffer::put_long(), and PS_BitSet::save().
Referenced by runtests().
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.
Definition at line 363 of file ps_bitmap.hxx.
References bias, data, do_reserve(), PS_FileBuffer::get_char(), PS_FileBuffer::get_long(), PS_FileBuffer::isReadonly(), and max_row.
Referenced by PS_BitMap(), and FINAL_TYPE< SEQTYPE >::PS_BitMap_Counted().
bool PS_BitMap::copy | ( | const PS_BitMap * | _other_bitmap | ) |
Definition at line 266 of file ps_bitmap.hxx.
References bias, capacity, data, do_reserve(), PS_BitSet::getCapacity(), and max_row.
|
virtual |
Reimplemented in FINAL_TYPE< SEQTYPE >, FINAL_TYPE< SEQTYPE >, and FINAL_TYPE< SEQTYPE >.
Definition at line 278 of file ps_bitmap.hxx.
References do_reserve().
|
protected |
Definition at line 14 of file ps_bitmap.hxx.
Referenced by copy(), do_reserve(), get(), getCountOfTrues(), getFalseIndicesFor(), getTrueIndicesFor(), invert(), load(), print(), printGNUplot(), save(), set(), and x_or().
|
protected |
Definition at line 16 of file ps_bitmap.hxx.
Referenced by copy(), do_reserve(), load(), print(), printGNUplot(), and save().
|
protected |
Definition at line 17 of file ps_bitmap.hxx.
Referenced by copy(), getCountOfTrues(), getFalseIndicesFor(), getTrueIndicesFor(), invert(), load(), print(), printGNUplot(), save(), set(), and x_or().
|
protected |
Definition at line 18 of file ps_bitmap.hxx.
Referenced by copy(), do_reserve(), print(), printGNUplot(), PS_BitMap(), FINAL_TYPE< SEQTYPE >::PS_BitMap_Counted(), FINAL_TYPE< SEQTYPE >::PS_BitMap_Fast(), and ~PS_BitMap().