CASM
1.1.0
A Clusters Approach to Statistical Mechanics
|
#include <FilterIterator.hh>
Filter iterator allows skipping elements that return false from filter function
Definition at line 20 of file FilterIterator.hh.
Public Types | |
using | pointer = typename IteratorType::pointer |
using | reference = typename IteratorType::reference |
using | DataObject = typename IteratorType::value_type |
Public Member Functions | |
FilterIterator () | |
FilterIterator (IteratorType const &_begin, IteratorType const &_end, std::function< bool(reference)> _filter) | |
FilterIterator (IteratorType const &_end) | |
reference | operator* () const |
pointer | operator-> () const |
bool | operator== (const FilterIterator &RHS) const |
bool | operator!= (const FilterIterator &RHS) const |
FilterIterator & | operator++ () |
FilterIterator | operator++ (int) |
Private Attributes | |
IteratorType | m_it |
IteratorType | m_end |
std::function< bool(reference)> | m_filter |
Friends | |
void | swap (FilterIterator &a, FilterIterator &b) |
Definitions. More... | |
using CASM::FilterIterator< IteratorType >::DataObject = typename IteratorType::value_type |
Definition at line 25 of file FilterIterator.hh.
using CASM::FilterIterator< IteratorType >::pointer = typename IteratorType::pointer |
Definition at line 23 of file FilterIterator.hh.
using CASM::FilterIterator< IteratorType >::reference = typename IteratorType::reference |
Definition at line 24 of file FilterIterator.hh.
|
inline |
Definition at line 27 of file FilterIterator.hh.
|
inline |
Definition at line 29 of file FilterIterator.hh.
|
inline |
Definition at line 37 of file FilterIterator.hh.
|
inline |
Definition at line 45 of file FilterIterator.hh.
|
inline |
Definition at line 39 of file FilterIterator.hh.
|
inline |
Definition at line 47 of file FilterIterator.hh.
|
inline |
Definition at line 55 of file FilterIterator.hh.
|
inline |
Definition at line 41 of file FilterIterator.hh.
|
inline |
Definition at line 43 of file FilterIterator.hh.
|
friend |
Definitions.
Definition at line 70 of file FilterIterator.hh.
|
private |
Definition at line 64 of file FilterIterator.hh.
|
private |
Definition at line 65 of file FilterIterator.hh.
|
private |
Definition at line 64 of file FilterIterator.hh.