simple 2D bit array.
More...
#include <vbl_bit_array_2d.h>
|
| | vbl_bit_array_2d () |
| |
| | vbl_bit_array_2d (unsigned int m, unsigned int n) |
| | Construct num_rows x num_cols array and leave data uninitialised. More...
|
| |
| | vbl_bit_array_2d (unsigned int m, unsigned int n, bool v) |
| | Construct num_rows x num_cols array and fill all cells with v. More...
|
| |
| | vbl_bit_array_2d (unsigned int m, unsigned int n, bool v[]) |
| | Construct num_rows x num_cols array and fill all cells with v. More...
|
| |
| | vbl_bit_array_2d (vbl_bit_array_2d const &) |
| | Copy constructor. More...
|
| |
| | ~vbl_bit_array_2d () |
| |
| vbl_bit_array_2d & | operator= (vbl_bit_array_2d const &) |
| | Assignment operator. More...
|
| |
| bool | operator== (vbl_bit_array_2d const &a) const |
| | Comparison. More...
|
| |
| bool | operator!= (vbl_bit_array_2d const &a) const |
| |
| void | fill (bool value) |
| | Fill with value. More...
|
| |
| void | resize (unsigned int m, unsigned int n) |
| | Delete contents and resize to m rows x n cols. More...
|
| |
| void | enlarge (unsigned int m, unsigned int n) |
| | Resizes and pads with zeros; keeps existing data. More...
|
| |
| void | clear () |
| | make as if default-constructed. More...
|
| |
| bool | operator() (unsigned int i, unsigned int j) const |
| |
| bool | operator() (unsigned int i, unsigned int j) |
| |
| void | put (unsigned int i, unsigned int j, bool const &x) |
| |
| bool | get (unsigned int i, unsigned int j) const |
| |
| void | set (unsigned int i, unsigned int j, bool v=true) |
| | Set the value of a cell; default is to set the value on. More...
|
| |
| void | flip (unsigned int i, unsigned int j) |
| | Change the value of a cell. More...
|
| |
| unsigned int | rows () const |
| |
| unsigned int | cols () const |
| |
| unsigned int | columns () const |
| |
| unsigned long | size () const |
| | Number of bytes allocated by the data. More...
|
| |
|
| void | destruct () |
| |
| void | construct (unsigned int m, unsigned int n) |
| |
| void | index (unsigned int x, unsigned int y, unsigned long &byteindex, unsigned int &bitindex) const |
| |
simple 2D bit array.
essentially identical to vbl_array_2d<bool> but more efficiently stored
Definition at line 22 of file vbl_bit_array_2d.h.
◆ vbl_bit_array_2d() [1/5]
| vbl_bit_array_2d::vbl_bit_array_2d |
( |
| ) |
|
|
inline |
◆ vbl_bit_array_2d() [2/5]
| vbl_bit_array_2d::vbl_bit_array_2d |
( |
unsigned int |
m, |
|
|
unsigned int |
n |
|
) |
| |
|
inline |
Construct num_rows x num_cols array and leave data uninitialised.
Definition at line 28 of file vbl_bit_array_2d.h.
◆ vbl_bit_array_2d() [3/5]
| vbl_bit_array_2d::vbl_bit_array_2d |
( |
unsigned int |
m, |
|
|
unsigned int |
n, |
|
|
bool |
v |
|
) |
| |
|
inline |
Construct num_rows x num_cols array and fill all cells with v.
Definition at line 30 of file vbl_bit_array_2d.h.
◆ vbl_bit_array_2d() [4/5]
| vbl_bit_array_2d::vbl_bit_array_2d |
( |
unsigned int |
m, |
|
|
unsigned int |
n, |
|
|
bool |
v[] |
|
) |
| |
Construct num_rows x num_cols array and fill all cells with v.
Definition at line 26 of file vbl_bit_array_2d.cxx.
◆ vbl_bit_array_2d() [5/5]
◆ ~vbl_bit_array_2d()
| vbl_bit_array_2d::~vbl_bit_array_2d |
( |
| ) |
|
|
inline |
◆ clear()
| void vbl_bit_array_2d::clear |
( |
| ) |
|
|
inline |
◆ cols()
| unsigned int vbl_bit_array_2d::cols |
( |
| ) |
const |
|
inline |
◆ columns()
| unsigned int vbl_bit_array_2d::columns |
( |
| ) |
const |
|
inline |
◆ construct()
| void vbl_bit_array_2d::construct |
( |
unsigned int |
m, |
|
|
unsigned int |
n |
|
) |
| |
|
private |
◆ destruct()
| void vbl_bit_array_2d::destruct |
( |
| ) |
|
|
inlineprivate |
◆ enlarge()
| void vbl_bit_array_2d::enlarge |
( |
unsigned int |
m, |
|
|
unsigned int |
n |
|
) |
| |
◆ fill()
| void vbl_bit_array_2d::fill |
( |
bool |
value | ) |
|
◆ flip()
| void vbl_bit_array_2d::flip |
( |
unsigned int |
i, |
|
|
unsigned int |
j |
|
) |
| |
|
inline |
◆ get()
| bool vbl_bit_array_2d::get |
( |
unsigned int |
i, |
|
|
unsigned int |
j |
|
) |
| const |
◆ index()
| void vbl_bit_array_2d::index |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
unsigned long & |
byteindex, |
|
|
unsigned int & |
bitindex |
|
) |
| const |
|
private |
◆ operator!=()
◆ operator()() [1/2]
| bool vbl_bit_array_2d::operator() |
( |
unsigned int |
i, |
|
|
unsigned int |
j |
|
) |
| const |
◆ operator()() [2/2]
| bool vbl_bit_array_2d::operator() |
( |
unsigned int |
i, |
|
|
unsigned int |
j |
|
) |
| |
◆ operator=()
◆ operator==()
◆ put()
| void vbl_bit_array_2d::put |
( |
unsigned int |
i, |
|
|
unsigned int |
j, |
|
|
bool const & |
x |
|
) |
| |
◆ resize()
| void vbl_bit_array_2d::resize |
( |
unsigned int |
m, |
|
|
unsigned int |
n |
|
) |
| |
|
inline |
◆ rows()
| unsigned int vbl_bit_array_2d::rows |
( |
| ) |
const |
|
inline |
◆ set()
| void vbl_bit_array_2d::set |
( |
unsigned int |
i, |
|
|
unsigned int |
j, |
|
|
bool |
v = true |
|
) |
| |
|
inline |
Set the value of a cell; default is to set the value on.
Definition at line 64 of file vbl_bit_array_2d.h.
◆ size()
| unsigned long vbl_bit_array_2d::size |
( |
| ) |
const |
◆ data_
| unsigned char* vbl_bit_array_2d::data_ |
|
private |
◆ num_cols_
| unsigned int vbl_bit_array_2d::num_cols_ |
|
private |
◆ num_rows_
| unsigned int vbl_bit_array_2d::num_rows_ |
|
private |
The documentation for this class was generated from the following files: