17 #ifndef AWALI_MISC_CONT_FILTER_HH
18 # define AWALI_MISC_CONT_FILTER_HH
28 template <
typename Container>
30 using value_t =
typename Container::value_type;
68 template <
typename Container>
70 using value_t =
typename Container::value_type;
84 unsigned e=
cont.size();
104 template <
typename Container>
112 using it_t =
typename Container::const_iterator;
144 template <
typename Container>
149 using it_t =
typename Container::const_iterator;
178 template <
typename Iterator>
The Boolean semring.
Definition: b.hh:38
Main namespace of Awali.
Definition: ato.hh:22
Definition: cont_filter.hh:145
const_iterator end() const
Definition: cont_filter.hh:162
const_iterator begin() const
Definition: cont_filter.hh:156
cont_filter(const Container &cont, pred_t pred)
Definition: cont_filter.hh:151
pred_t pred
Definition: cont_filter.hh:154
typename Container::value_type value_type
Definition: cont_filter.hh:146
const Container & cont
Definition: cont_filter.hh:153
bool empty() const
Definition: cont_filter.hh:166
typename Container::const_iterator it_t
Definition: cont_filter.hh:149
unsigned size() const
Definition: cont_filter.hh:170
std::function< bool(const value_type &)> pred_t
Definition: cont_filter.hh:147
Definition: cont_filter.hh:69
indice_filter(const Container &cont, pred_t pred)
Definition: cont_filter.hh:74
const_iterator begin() const
Definition: cont_filter.hh:82
bool empty() const
Definition: cont_filter.hh:92
std::function< bool(const value_t &)> pred_t
Definition: cont_filter.hh:71
indice_filter(const Container &cont, pred_t pred, unsigned shift)
Definition: cont_filter.hh:76
typename Container::value_type value_t
Definition: cont_filter.hh:70
const_iterator end() const
Definition: cont_filter.hh:89
unsigned size() const
Definition: cont_filter.hh:96
pred_t pred
Definition: cont_filter.hh:79
const Container & cont
Definition: cont_filter.hh:78
unsigned shift
Definition: cont_filter.hh:80
Definition: cont_filter.hh:179
unsigned size() const
Definition: cont_filter.hh:200
Iterator end() const
Definition: cont_filter.hh:192
Iterator begin() const
Definition: cont_filter.hh:188
typename Iterator::value_type value_type
Definition: cont_filter.hh:180
bool empty() const
Definition: cont_filter.hh:196
Iterator begin_
Definition: cont_filter.hh:184
it_cont(Iterator begin, Iterator end)
Definition: cont_filter.hh:182
Iterator end_
Definition: cont_filter.hh:185
Definition: cont_filter.hh:105
value_type * pointer
Definition: cont_filter.hh:110
bool operator!=(const it_filter &it) const
Definition: cont_filter.hh:135
const value_type & operator*() const
Definition: cont_filter.hh:124
it_filter(it_t end)
Definition: cont_filter.hh:117
std::forward_iterator_tag iterator_category
Definition: cont_filter.hh:111
it_filter & operator++()
Definition: cont_filter.hh:128
typename Container::value_type value_type
Definition: cont_filter.hh:106
it_filter(it_t current, it_t end, pred_t pred)
Definition: cont_filter.hh:114
value_type & reference
Definition: cont_filter.hh:108
int difference_type
Definition: cont_filter.hh:109
bool operator==(const it_filter &it) const
Definition: cont_filter.hh:138
it_t current
Definition: cont_filter.hh:120
pred_t pred
Definition: cont_filter.hh:122
typename Container::const_iterator it_t
Definition: cont_filter.hh:112
it_t end_
Definition: cont_filter.hh:121
std::function< bool(const value_type &)> pred_t
Definition: cont_filter.hh:107
Definition: cont_filter.hh:29
unsigned & reference
Definition: cont_filter.hh:33
int difference_type
Definition: cont_filter.hh:34
it_indice_filter(unsigned end)
Definition: cont_filter.hh:40
Container cont
Definition: cont_filter.hh:46
typename Container::value_type value_t
Definition: cont_filter.hh:30
unsigned * pointer
Definition: cont_filter.hh:35
bool operator==(const it_indice_filter &it) const
Definition: cont_filter.hh:62
it_indice_filter & operator++()
Definition: cont_filter.hh:52
unsigned operator*()
Definition: cont_filter.hh:48
std::forward_iterator_tag iterator_category
Definition: cont_filter.hh:36
bool operator!=(const it_indice_filter &it) const
Definition: cont_filter.hh:59
std::function< bool(const value_t &)> pred_t
Definition: cont_filter.hh:31
unsigned length
Definition: cont_filter.hh:44
unsigned current
Definition: cont_filter.hh:43
pred_t pred
Definition: cont_filter.hh:45
unsigned value_type
Definition: cont_filter.hh:32
it_indice_filter(Container cont, unsigned current, unsigned end, pred_t pred)
Definition: cont_filter.hh:37