LIEF: Library to Instrument Executable Formats Version 0.16.0
|
Iterator which return a ref on container's values given predicates. More...
#include <iterators.hpp>
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = decay_t<U> |
using | difference_type = ptrdiff_t |
using | pointer = typename std::remove_pointer<U>::type* |
using | reference = typename std::remove_pointer<U>::type& |
using | container_type = T |
using | DT_VAL = U |
using | DT = decay_t<T> |
using | ref_t = typename filter_iterator::reference |
using | pointer_t = typename filter_iterator::pointer |
using | filter_t = std::function<bool (const typename DT::value_type&)> |
Public Member Functions | |
filter_iterator (T container, filter_t filter) | |
filter_iterator (T container, const std::vector< filter_t > &filters) | |
filter_iterator (T container) | |
filter_iterator (const filter_iterator ©) | |
filter_iterator & | operator= (filter_iterator other) |
void | swap (filter_iterator &other) noexcept |
filter_iterator & | def (filter_t func) |
filter_iterator & | operator++ () |
filter_iterator | operator++ (int) |
filter_iterator | begin () const |
filter_iterator | cbegin () const |
filter_iterator | end () const |
filter_iterator | cend () const |
std::enable_if<!std::is_const< ref_t >::value, remove_const_t< ref_t > >::type | operator* () |
template<typename V = DT_VAL> | |
std::enable_if< std::is_pointer< V >::value, add_const_t< ref_t > >::type | operator* () const |
template<typename V = DT_VAL> | |
std::enable_if<!std::is_pointer< V >::value, add_const_t< ref_t > >::type | operator* () const |
std::enable_if<!std::is_const< ref_t >::value, remove_const_t< ref_t > >::type | operator[] (size_t n) |
add_const_t< ref_t > | operator[] (size_t n) const |
std::enable_if<!std::is_const< pointer_t >::value, pointer_t >::type | operator-> () |
add_const_t< pointer_t > | operator-> () const |
size_t | size () const |
bool | empty () const |
bool | operator== (const filter_iterator &other) const |
bool | operator!= (const filter_iterator &other) const |
Iterator which return a ref on container's values given predicates.
using LIEF::filter_iterator< T, U, ITERATOR_T >::container_type = T |
using LIEF::filter_iterator< T, U, ITERATOR_T >::difference_type = ptrdiff_t |
using LIEF::filter_iterator< T, U, ITERATOR_T >::DT = decay_t<T> |
using LIEF::filter_iterator< T, U, ITERATOR_T >::DT_VAL = U |
using LIEF::filter_iterator< T, U, ITERATOR_T >::filter_t = std::function<bool (const typename DT::value_type&)> |
using LIEF::filter_iterator< T, U, ITERATOR_T >::iterator_category = std::forward_iterator_tag |
using LIEF::filter_iterator< T, U, ITERATOR_T >::pointer = typename std::remove_pointer<U>::type* |
using LIEF::filter_iterator< T, U, ITERATOR_T >::pointer_t = typename filter_iterator::pointer |
using LIEF::filter_iterator< T, U, ITERATOR_T >::ref_t = typename filter_iterator::reference |
using LIEF::filter_iterator< T, U, ITERATOR_T >::reference = typename std::remove_pointer<U>::type& |
using LIEF::filter_iterator< T, U, ITERATOR_T >::value_type = decay_t<U> |
|
inline |
Referenced by begin(), cbegin(), cend(), def(), end(), filter_iterator(), operator!=(), operator*(), operator++(), operator++(), operator->(), operator=(), operator==(), operator[](), size(), and swap().
|
inline |
|
inline |
|
inline |
References begin(), and filter_iterator().
|
inline |
References filter_iterator().
Referenced by cbegin(), filter_iterator(), operator[](), and size().
|
inline |
References begin(), and filter_iterator().
|
inline |
References end(), and filter_iterator().
|
inline |
References filter_iterator().
|
inline |
References size().
|
inline |
References filter_iterator().
Referenced by cend().
|
inline |
References filter_iterator().
|
inline |
References filter_iterator().
Referenced by operator->().
|
inline |
|
inline |
|
inline |
References filter_iterator().
|
inline |
References filter_iterator().
|
inline |
References filter_iterator().
|
inline |
References operator*().
|
inline |
References filter_iterator(), and swap().
|
inline |
References filter_iterator().
|
inline |
References filter_iterator().
|
inline |
|
inline |
References begin(), filter_iterator(), and size().
Referenced by empty(), operator[](), and size().
|
inlinenoexcept |
References filter_iterator().
Referenced by operator=().