Iterators
[Utilities]


Classes

class  paludis::CreateInsertIterator< Value_, Iter_ >
class  paludis::IndirectIterator< Iter_, Value_ >
class  paludis::MemberIterator< Value_, Iterator_, member_ >
class  paludis::WrappedForwardIterator< Tag_, Value_ >
class  paludis::WrappedOutputIterator< Tag_, Value_ >

Functions

template<typename Iter_>
IndirectIterator< Iter_ > paludis::indirect_iterator (const Iter_ &)
template<typename T_>
T_ paludis::next (const T_ &i)
template<typename T_>
T_ paludis::next (const T_ &i, const int &n)
template<typename T_>
T_ paludis::previous (const T_ &i)
template<typename T_>
std::size_t paludis::capped_distance (T_ a, const T_ &b, unsigned n)

Detailed Description

Various iterator utilities.

Examples


Function Documentation

template<typename T_>
std::size_t paludis::capped_distance ( T_  a,
const T_ &  b,
unsigned  n 
) [inline]

Return the distance from a to b, except if it is greater than n, in which case return n instead.

template<typename Iter_>
IndirectIterator< Iter_ > paludis::indirect_iterator ( const Iter_ &  t  )  [inline]

Construct an IndirectIterator from another iterator.

See also:
IndirectIterator
Examples:
example_contents.cc, example_dep_label.cc, example_dep_spec_flattener.cc, example_metadata_key.cc, example_repository.cc, and example_selection.cc.

template<typename T_>
T_ paludis::next ( const T_ &  i,
const int &  n 
) [inline]

Return a new iterator advanced by a distance of n.

template<typename T_>
T_ paludis::next ( const T_ &  i  )  [inline]

Return a new iterator pointing to the item after i.

template<typename T_>
T_ paludis::previous ( const T_ &  i  )  [inline]

Return a new iterator pointing to the item before i.


Generated on Mon Sep 21 10:36:09 2009 for paludis by  doxygen 1.5.4