ARB
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PS_BitMap Class Referenceabstract

#include <ps_bitmap.hxx>

Inheritance diagram for PS_BitMap:
Inheritance graph
[legend]
Collaboration diagram for PS_BitMap:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 11 of file ps_bitmap.hxx.

Constructor & Destructor Documentation

PS_BitMap::PS_BitMap ( const bool  _bias,
const long  _max_row,
const long  _capacity 
)
inlineprotected

Definition at line 22 of file ps_bitmap.hxx.

PS_BitMap::PS_BitMap ( const bool  _bias,
const long  _capacity 
)
inlineexplicit

Definition at line 57 of file ps_bitmap.hxx.

References capacity.

PS_BitMap::PS_BitMap ( PS_FileBuffer _file)
inlineexplicit

Definition at line 68 of file ps_bitmap.hxx.

References load(), and NULp.

virtual PS_BitMap::~PS_BitMap ( )
inlinevirtual

Definition at line 73 of file ps_bitmap.hxx.

References capacity.

Member Function Documentation

bool PS_BitMap::do_reserve ( const long  _capacity,
const bool  _init_sets 
)
protectedvirtual

Definition at line 281 of file ps_bitmap.hxx.

References bias, capacity, and data.

Referenced by copy(), load(), and reserve().

long PS_BitMap::getTrueIndicesFor ( const long  _index,
PS_BitSet::IndexSet _index_set 
)
virtual

Reimplemented in FINAL_TYPE< SEQTYPE >.

Definition at line 201 of file ps_bitmap.hxx.

References data, PS_BitSet::getTrueIndices(), and max_row.

long PS_BitMap::getFalseIndicesFor ( const long  _index,
PS_BitSet::IndexSet _index_set 
)
virtual

Reimplemented in FINAL_TYPE< SEQTYPE >.

Definition at line 212 of file ps_bitmap.hxx.

References data, PS_BitSet::getFalseIndices(), and max_row.

long PS_BitMap::getCountOfTrues ( )
virtual

Reimplemented in FINAL_TYPE< SEQTYPE >.

Definition at line 223 of file ps_bitmap.hxx.

References data, PS_BitSet::getCountOfTrues(), and max_row.

bool PS_BitMap::get ( const long  _row,
const long  _col 
)
virtual

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().

bool PS_BitMap::set ( const long  _row,
const long  _col,
const bool  _value 
)
virtual

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().

virtual void PS_BitMap::setTrue ( const long  _row,
const long  _col 
)
pure virtual
virtual void PS_BitMap::setFalse ( const long  _row,
const long  _col 
)
pure virtual
bool PS_BitMap::triangle_get ( const long  _row,
const long  _col 
)

Definition at line 256 of file ps_bitmap.hxx.

bool PS_BitMap::triangle_set ( const long  _row,
const long  _col,
const bool  _value 
)

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().

void PS_BitMap::print ( FILE *  out)
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().

void PS_BitMap::printGNUplot ( const char _title,
char _buffer,
PS_FileBuffer _file 
)
virtual
bool PS_BitMap::save ( PS_FileBuffer _file)
bool PS_BitMap::load ( PS_FileBuffer _file)
virtual
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.

bool PS_BitMap::reserve ( const long  _capacity)
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().

Referenced by get(), and set().

Member Data Documentation

PS_BitSet** PS_BitMap::data
protected
bool PS_BitMap::bias
protected

Definition at line 16 of file ps_bitmap.hxx.

Referenced by copy(), do_reserve(), load(), print(), printGNUplot(), and save().

long PS_BitMap::max_row
protected
long PS_BitMap::capacity
protected

The documentation for this class was generated from the following file: