wibble::list Namespace Reference


Classes

struct  ListIterator
struct  Sorted
struct  Filtered
struct  Unique
struct  Take
struct  Map
struct  Empty
struct  Singular
struct  Append

Functions

template<typename X >
Singular< X > singular (const X &x)
template<typename X , typename Y >
Append< X, Y > append (const X &x, const Y &y)
template<typename List >
size_t count (List l)
template<typename List , typename F >
void foreach (List l, F f)
template<typename List , template< typename > class F>
void foreach (List l, F< typename List::Type > f)
template<typename List , typename Pred >
Filtered< List, Pred > filter (List l, Pred p)
template<typename List , template< typename > class Pred>
Filtered< List, Pred< List > > filter (List l, Pred< List > p)
template<typename List , typename F >
Map< List, F > map (const List &l, const F &f)
template<typename List >
Sorted< List > sort (List l)
template<typename List >
Unique< List > unique (List l)
template<typename List >
Take< List > take (int t, List l)
template<typename List , typename Out >
void output (List l, Out it)
template<typename List >
ListIterator< List > begin (List l)
template<typename List >
ListIterator< List > end (List)

Function Documentation

template<typename X , typename Y >
Append< X, Y > wibble::list::append ( const X &  x,
const Y &  y 
) [inline]

template<typename List >
ListIterator< List > wibble::list::begin ( List  l  )  [inline]

template<typename List >
size_t wibble::list::count ( List  l  )  [inline]

template<typename List >
ListIterator< List > wibble::list::end ( List   )  [inline]

template<typename List , template< typename > class Pred>
Filtered< List, Pred< List > > wibble::list::filter ( List  l,
Pred< List >  p 
) [inline]

template<typename List , typename Pred >
Filtered< List, Pred > wibble::list::filter ( List  l,
Pred  p 
) [inline]

Referenced by TestList::filtered().

template<typename List , template< typename > class F>
void wibble::list::foreach ( List  l,
F< typename List::Type >  f 
) [inline]

References count().

template<typename List , typename F >
void wibble::list::foreach ( List  l,
f 
) [inline]

References count().

template<typename List , typename F >
Map< List, F > wibble::list::map ( const List &  l,
const F &  f 
) [inline]

Referenced by TestList::map(), and TestMMap::simple().

template<typename List , typename Out >
void wibble::list::output ( List  l,
Out  it 
) [inline]

template<typename X >
Singular< X > wibble::list::singular ( const X &  x  )  [inline]

template<typename List >
Sorted< List > wibble::list::sort ( List  l  )  [inline]

Referenced by TestList::sorted().

template<typename List >
Take< List > wibble::list::take ( int  t,
List  l 
) [inline]

Referenced by TestList::take().

template<typename List >
Unique< List > wibble::list::unique ( List  l  )  [inline]

Referenced by TestList::unique().


Generated on Fri Jun 12 05:16:09 2009 for wibble by  doxygen 1.5.9