yast2-storage
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

storage::FilterIterator< Pred, Iter > Class Template Reference

#include <FilterIterator.h>

Inheritance diagram for storage::FilterIterator< Pred, Iter >:
iterator storage::ContainerIter< Pred, Iter >

List of all members.

Public Types

typedef Iter::value_type value_type
typedef Iter::reference reference
typedef Iter::pointer pointer
typedef Iter::difference_type difference_type
typedef Iter::iterator_category iterator_category

Public Member Functions

 FilterIterator ()
template<class It >
 FilterIterator (const It &begin, const It &end, Pred f, bool setend=false)
 FilterIterator (const IterPair< Iter > &p, Pred f, bool setend=false)
 FilterIterator (const FilterIterator &x)
FilterIteratoroperator= (const FilterIterator &x)
FilterIteratoroperator++ ()
FilterIterator operator++ (int)
FilterIteratoroperator-- ()
FilterIterator operator-- (int)
value_type operator* () const
pointer operator-> () const
template<class Other >
bool operator== (const Other &x) const
template<class Other >
bool operator!= (const Other &x) const
Pred pred () const
Iter end () const
Iter cur () const
Iter begin () const

Protected Member Functions

void initialize (bool setend)
void copyMembers (const FilterIterator &x)
void assertPred (bool forward=true)

Protected Attributes

Iter m_begin
Iter m_end
Iter m_cur
Pred m_f

template<class Pred, class Iter>
class storage::FilterIterator< Pred, Iter >


Member Typedef Documentation

template<class Pred, class Iter>
typedef Iter::difference_type storage::FilterIterator< Pred, Iter >::difference_type
template<class Pred, class Iter>
typedef Iter::iterator_category storage::FilterIterator< Pred, Iter >::iterator_category
template<class Pred, class Iter>
typedef Iter::pointer storage::FilterIterator< Pred, Iter >::pointer
template<class Pred, class Iter>
typedef Iter::reference storage::FilterIterator< Pred, Iter >::reference
template<class Pred, class Iter>
typedef Iter::value_type storage::FilterIterator< Pred, Iter >::value_type

Constructor & Destructor Documentation

template<class Pred, class Iter>
storage::FilterIterator< Pred, Iter >::FilterIterator ( ) [inline]
template<class Pred, class Iter>
template<class It >
storage::FilterIterator< Pred, Iter >::FilterIterator ( const It &  begin,
const It &  end,
Pred  f,
bool  setend = false 
) [inline]
template<class Pred, class Iter>
storage::FilterIterator< Pred, Iter >::FilterIterator ( const IterPair< Iter > &  p,
Pred  f,
bool  setend = false 
) [inline]
template<class Pred, class Iter>
storage::FilterIterator< Pred, Iter >::FilterIterator ( const FilterIterator< Pred, Iter > &  x) [inline]

Member Function Documentation

template<class Pred, class Iter>
void storage::FilterIterator< Pred, Iter >::assertPred ( bool  forward = true) [inline, protected]
template<class Pred, class Iter>
Iter storage::FilterIterator< Pred, Iter >::begin ( ) const [inline]
template<class Pred, class Iter>
void storage::FilterIterator< Pred, Iter >::copyMembers ( const FilterIterator< Pred, Iter > &  x) [inline, protected]
template<class Pred, class Iter>
Iter storage::FilterIterator< Pred, Iter >::cur ( ) const [inline]
template<class Pred, class Iter>
Iter storage::FilterIterator< Pred, Iter >::end ( ) const [inline]
template<class Pred, class Iter>
void storage::FilterIterator< Pred, Iter >::initialize ( bool  setend) [inline, protected]
template<class Pred, class Iter>
template<class Other >
bool storage::FilterIterator< Pred, Iter >::operator!= ( const Other &  x) const [inline]
template<class Pred, class Iter>
value_type storage::FilterIterator< Pred, Iter >::operator* ( ) const [inline]
template<class Pred, class Iter>
FilterIterator storage::FilterIterator< Pred, Iter >::operator++ ( int  ) [inline]
template<class Pred, class Iter>
FilterIterator& storage::FilterIterator< Pred, Iter >::operator++ ( ) [inline]
template<class Pred, class Iter>
FilterIterator& storage::FilterIterator< Pred, Iter >::operator-- ( ) [inline]
template<class Pred, class Iter>
FilterIterator storage::FilterIterator< Pred, Iter >::operator-- ( int  ) [inline]
template<class Pred, class Iter>
pointer storage::FilterIterator< Pred, Iter >::operator-> ( ) const [inline]
template<class Pred, class Iter>
FilterIterator& storage::FilterIterator< Pred, Iter >::operator= ( const FilterIterator< Pred, Iter > &  x) [inline]
template<class Pred, class Iter>
template<class Other >
bool storage::FilterIterator< Pred, Iter >::operator== ( const Other &  x) const [inline]
template<class Pred, class Iter>
Pred storage::FilterIterator< Pred, Iter >::pred ( ) const [inline]

Member Data Documentation

template<class Pred, class Iter>
Iter storage::FilterIterator< Pred, Iter >::m_begin [protected]
template<class Pred, class Iter>
Iter storage::FilterIterator< Pred, Iter >::m_cur [protected]
template<class Pred, class Iter>
Iter storage::FilterIterator< Pred, Iter >::m_end [protected]
template<class Pred, class Iter>
Pred storage::FilterIterator< Pred, Iter >::m_f [protected]

The documentation for this class was generated from the following file: