barry: Your go-to motif accountant
0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
barray-iterator.hpp
Go to the documentation of this file.
1
// #include <vector>
2
// #include <unordered_map>
3
// #include "typedefs.hpp"
4
// #include "barray-bones.hpp"
5
6
#ifndef BARRAY_ITERATOR_HPP
7
#define BARRAY_ITERATOR_HPP 1
8
9
template
<
typename
Cell_Type,
typename
Data_Type>
10
class
ConstBArrayRowIter
{
11
public
:
12
13
size_t
current_row
,
current_col
;
14
typename
Row_type<Cell_Type>::const_iterator
iter
;
15
const
BArray<Cell_Type,Data_Type>
*
Array
;
16
17
ConstBArrayRowIter
(
const
BArray<Cell_Type,Data_Type>
* Array_) :
Array
(Array_) {
18
19
// Finding the first entry of the iterator
20
for
(
size_t
i
= 0u;
i
<
Array
->
nrow
(); ++
i
)
21
if
(A_ROW(
i
).size() != 0u) {
22
iter
= A_ROW(
i
).begin();
23
break
;
24
}
25
26
return
;
27
28
};
29
~ConstBArrayRowIter
() {};
30
31
// operat
32
33
};
34
35
#endif
BArray< Cell_Type, Data_Type >
BArray::nrow
size_t nrow() const noexcept
ConstBArrayRowIter
Definition:
barray-iterator.hpp:10
ConstBArrayRowIter::current_col
size_t current_col
Definition:
barray-iterator.hpp:13
ConstBArrayRowIter::~ConstBArrayRowIter
~ConstBArrayRowIter()
Definition:
barray-iterator.hpp:29
ConstBArrayRowIter::ConstBArrayRowIter
ConstBArrayRowIter(const BArray< Cell_Type, Data_Type > *Array_)
Definition:
barray-iterator.hpp:17
ConstBArrayRowIter::iter
Row_type< Cell_Type >::const_iterator iter
Definition:
barray-iterator.hpp:14
ConstBArrayRowIter::current_row
size_t current_row
Definition:
barray-iterator.hpp:13
ConstBArrayRowIter::Array
const BArray< Cell_Type, Data_Type > * Array
Definition:
barray-iterator.hpp:15
i
size_t i
Definition:
counters-meat.hpp:83
Row_type
Map< size_t, Cell< Cell_Type > > Row_type
Definition:
typedefs.hpp:67
include
barry
barray-iterator.hpp
Generated on Thu Nov 16 2023 23:48:35 for barry: Your go-to motif accountant by
1.9.1