1 #ifndef FilteredConfigIterator_HH
2 #define FilteredConfigIterator_HH
12 template <
typename IteratorType>
15 template<
typename IteratorType>
23 template <
typename IteratorType>
26 using pointer =
typename IteratorType::pointer;
32 const IteratorType &_end,
33 const std::string &filter_expr,
45 const IteratorType &_end,
46 const std::vector<std::string> &filter_expr,
69 return m_it.operator->();
105 template<
typename IteratorType>
114 template<
typename IteratorType>
116 const IteratorType &it,
117 const IteratorType &it_end,
118 const std::vector<std::string> &filter_expr,
123 template<
typename IteratorType>
bool operator!=(const FilteredConfigIterator &iter) const
FilteredConfigIterator(const IteratorType &_begin, const IteratorType &_end, const std::vector< std::string > &filter_expr, const DataFormatterDictionary< Configuration > &_dict)
FilteredConfigIterator operator++(int)
FilteredConfigIterator< IteratorType > filter_end(const IteratorType &it_end)
DataFormatter< Configuration > m_filter
FilteredConfigIterator(const IteratorType &_end)
bool operator==(const FilteredConfigIterator &iter) const
void swap(FilteredConfigIterator< IteratorType > &a, FilteredConfigIterator< IteratorType > &b)
Definitions.
FilteredConfigIterator & operator++()
void swap(ConfigDoF &A, ConfigDoF &B)
pointer operator->() const
typename IteratorType::reference reference
reference operator*() const
FilteredConfigIterator(const IteratorType &_begin, const IteratorType &_end, const std::string &filter_expr, const DataFormatterDictionary< Configuration > &_dict)
FilteredConfigIterator< IteratorType > filter_begin(const IteratorType &it, const IteratorType &it_end, const std::vector< std::string > &filter_expr, const DataFormatterDictionary< Configuration > &_dict)
typename IteratorType::pointer pointer
A Configuration represents the values of all degrees of freedom in a Supercell.