BitMagic-C++
|
List of reference bit-vectors with their true index associations. More...
#include <bmxor.h>
Public Types | |
typedef BV | bvector_type |
typedef bvector_type::size_type | size_type |
typedef bvector_type * | bvector_type_ptr |
typedef const bvector_type * | bvector_type_const_ptr |
typedef bvector_type::allocator_type | bv_allocator_type |
Public Member Functions | |
void | reset () |
reset the collection (resize(0)) | |
void | add (const bvector_type *bv, size_type ref_idx) |
Add reference vector. | |
size_type | size () const BMNOEXCEPT |
Get reference list size. | |
const bvector_type * | get_bv (size_type idx) const BMNOEXCEPT |
Get reference vector by the index in this ref-vector. | |
size_type | get_row_idx (size_type idx) const BMNOEXCEPT |
Get reference row index by the index in this ref-vector. | |
size_type | find (std::size_t ref_idx) const BMNOEXCEPT |
Find vector index by the reference index. | |
template<class BMATR > | |
void | build (const BMATR &bmatr) |
build vector of references from a basic bit-matrix all NULL rows are skipped, not added to the ref.vector | |
Static Public Member Functions | |
static size_type | not_found () BMNOEXCEPT |
not-found value for find methods | |
Protected Types | |
typedef bm::heap_vector< bvector_type_const_ptr, bv_allocator_type, true > | bvptr_vector_type |
typedef bm::heap_vector< std::size_t, bv_allocator_type, true > | bv_plain_vector_type |
Protected Attributes | |
bvptr_vector_type | ref_bvects_ |
reference vector pointers | |
bv_plain_vector_type | ref_bvects_rows_ |
reference vector row idxs | |
List of reference bit-vectors with their true index associations.
Each referece vector would have two alternative indexes:
bvector_type::allocator_type bm::bv_ref_vector< BV >::bv_allocator_type |
|
protected |
BV bm::bv_ref_vector< BV >::bvector_type |
const bvector_type* bm::bv_ref_vector< BV >::bvector_type_const_ptr |
bvector_type* bm::bv_ref_vector< BV >::bvector_type_ptr |
|
protected |
bvector_type::size_type bm::bv_ref_vector< BV >::size_type |
|
inline |
Add reference vector.
bv | - bvector pointer |
ref_idx | - reference (row) index |
Definition at line 262 of file bmxor.h.
References BM_ASSERT, bm::bv_ref_vector< BV >::ref_bvects_, and bm::bv_ref_vector< BV >::ref_bvects_rows_.
Referenced by bm::bv_ref_vector< BV >::build().
|
inline |
build vector of references from a basic bit-matrix all NULL rows are skipped, not added to the ref.vector
Definition at line 298 of file bmxor.h.
References bm::bv_ref_vector< BV >::add(), and bm::bv_ref_vector< BV >::reset().
|
inline |
Find vector index by the reference index.
Definition at line 286 of file bmxor.h.
References bm::bv_ref_vector< BV >::not_found(), bm::bv_ref_vector< BV >::ref_bvects_rows_, and bm::bv_ref_vector< BV >::size().
|
inline |
Get reference vector by the index in this ref-vector.
Definition at line 273 of file bmxor.h.
References bm::bv_ref_vector< BV >::ref_bvects_.
|
inline |
Get reference row index by the index in this ref-vector.
Definition at line 277 of file bmxor.h.
References bm::bv_ref_vector< BV >::ref_bvects_rows_.
|
inlinestatic |
not-found value for find methods
Definition at line 282 of file bmxor.h.
Referenced by bm::bv_ref_vector< BV >::find().
|
inline |
reset the collection (resize(0))
Definition at line 251 of file bmxor.h.
References bm::bv_ref_vector< BV >::ref_bvects_, and bm::bv_ref_vector< BV >::ref_bvects_rows_.
Referenced by bm::bv_ref_vector< BV >::build().
|
inline |
Get reference list size.
Definition at line 270 of file bmxor.h.
References bm::bv_ref_vector< BV >::ref_bvects_.
Referenced by bm::bv_ref_vector< BV >::find().
|
protected |
reference vector pointers
Definition at line 315 of file bmxor.h.
Referenced by bm::bv_ref_vector< BV >::add(), bm::bv_ref_vector< BV >::get_bv(), bm::bv_ref_vector< BV >::reset(), and bm::bv_ref_vector< BV >::size().
|
protected |
reference vector row idxs
Definition at line 316 of file bmxor.h.
Referenced by bm::bv_ref_vector< BV >::add(), bm::bv_ref_vector< BV >::find(), bm::bv_ref_vector< BV >::get_row_idx(), and bm::bv_ref_vector< BV >::reset().