library of assembled shared sources |
http://lass.cocamware.com |
#include <iterator_range.h>
Public Types | |
typedef iterator_type | iterator |
typedef std::iterator_traits < iterator_type >::pointer | pointer |
typedef std::iterator_traits < iterator_type >::reference | reference |
typedef std::iterator_traits < iterator_type > ::difference_type | difference_type |
typedef std::iterator_traits < iterator_type > ::iterator_category | iterator_category |
Public Member Functions | |
iterator_range () | |
empty range (sort of, read warning). | |
iterator_range (iterator first, iterator last) | |
iterator | begin () const |
iterator | end () const |
iterator | operator-> () const |
reference | operator* () const |
reference | operator[] (difference_type index) const |
iterator_range & | operator++ () |
iterator_range | operator++ (int) |
const difference_type | size () const |
const bool | empty () const |
const bool | operator! () const |
operator const num::SafeBool () const | |
void | swap (iterator_range &other) |
Private Attributes | |
iterator | first_ |
iterator | last_ |
Definition at line 60 of file iterator_range.h.
typedef iterator_type lass::stde::iterator_range< iterator_type >::iterator |
Definition at line 64 of file iterator_range.h.
typedef std::iterator_traits<iterator_type>::pointer lass::stde::iterator_range< iterator_type >::pointer |
Definition at line 65 of file iterator_range.h.
typedef std::iterator_traits<iterator_type>::reference lass::stde::iterator_range< iterator_type >::reference |
Definition at line 66 of file iterator_range.h.
typedef std::iterator_traits<iterator_type>::difference_type lass::stde::iterator_range< iterator_type >::difference_type |
Definition at line 67 of file iterator_range.h.
typedef std::iterator_traits<iterator_type>::iterator_category lass::stde::iterator_range< iterator_type >::iterator_category |
Definition at line 68 of file iterator_range.h.
lass::stde::iterator_range< I >::iterator_range | ( | ) | [inline] |
empty range (sort of, read warning).
Definition at line 64 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::first_, and lass::stde::iterator_range< iterator_type >::last_.
lass::stde::iterator_range< I >::iterator_range | ( | iterator | first, | |
iterator | last | |||
) | [inline] |
Definition at line 75 of file iterator_range.inl.
iterator_range< I >::iterator lass::stde::iterator_range< I >::begin | ( | ) | const [inline] |
Definition at line 85 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::first_.
Referenced by lass::stde::operator==().
iterator_range< I >::iterator lass::stde::iterator_range< I >::end | ( | ) | const [inline] |
Definition at line 94 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::last_.
Referenced by lass::stde::operator==().
iterator_range< I >::iterator lass::stde::iterator_range< I >::operator-> | ( | ) | const [inline] |
Definition at line 103 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::empty(), lass::stde::iterator_range< iterator_type >::first_, and LASS_ASSERT.
iterator_range< I >::reference lass::stde::iterator_range< I >::operator* | ( | ) | const [inline] |
Definition at line 113 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::empty(), lass::stde::iterator_range< iterator_type >::first_, and LASS_ASSERT.
iterator_range< I >::reference lass::stde::iterator_range< I >::operator[] | ( | difference_type | index | ) | const [inline] |
Definition at line 123 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::first_, LASS_ASSERT, and lass::stde::iterator_range< iterator_type >::size().
iterator_range< I > & lass::stde::iterator_range< I >::operator++ | ( | ) | [inline] |
Definition at line 135 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::first_, LASS_ASSERT, and lass::stde::iterator_range< iterator_type >::last_.
Referenced by lass::stde::iterator_range< iterator_type >::operator++().
iterator_range< I > lass::stde::iterator_range< I >::operator++ | ( | int | ) | [inline] |
Definition at line 146 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::operator++().
const iterator_range< I >::difference_type lass::stde::iterator_range< I >::size | ( | ) | const [inline] |
Definition at line 157 of file iterator_range.inl.
References lass::prim::distance(), lass::stde::iterator_range< iterator_type >::first_, and lass::stde::iterator_range< iterator_type >::last_.
Referenced by lass::stde::iterator_range< iterator_type >::operator[]().
const bool lass::stde::iterator_range< I >::empty | ( | ) | const [inline] |
Definition at line 165 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::first_, and lass::stde::iterator_range< iterator_type >::last_.
Referenced by lass::stde::iterator_range< iterator_type >::operator const num::SafeBool(), lass::stde::iterator_range< iterator_type >::operator!(), lass::stde::iterator_range< iterator_type >::operator*(), and lass::stde::iterator_range< iterator_type >::operator->().
const bool lass::stde::iterator_range< I >::operator! | ( | ) | const [inline] |
Definition at line 173 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::empty().
lass::stde::iterator_range< I >::operator const num::SafeBool | ( | ) | const [inline] |
Definition at line 181 of file iterator_range.inl.
References lass::stde::iterator_range< iterator_type >::empty(), lass::num::safeFalse, and lass::num::safeTrue.
void lass::stde::iterator_range< iterator_type >::swap | ( | iterator_range< iterator_type > & | other | ) |
iterator lass::stde::iterator_range< iterator_type >::first_ [private] |
Definition at line 92 of file iterator_range.h.
Referenced by lass::stde::iterator_range< iterator_type >::begin(), lass::stde::iterator_range< iterator_type >::empty(), lass::stde::iterator_range< iterator_type >::iterator_range(), lass::stde::iterator_range< iterator_type >::operator*(), lass::stde::iterator_range< iterator_type >::operator++(), lass::stde::iterator_range< iterator_type >::operator->(), lass::stde::iterator_range< iterator_type >::operator[](), and lass::stde::iterator_range< iterator_type >::size().
iterator lass::stde::iterator_range< iterator_type >::last_ [private] |
Definition at line 93 of file iterator_range.h.
Referenced by lass::stde::iterator_range< iterator_type >::empty(), lass::stde::iterator_range< iterator_type >::end(), lass::stde::iterator_range< iterator_type >::iterator_range(), lass::stde::iterator_range< iterator_type >::operator++(), and lass::stde::iterator_range< iterator_type >::size().
Generated on Mon Nov 10 14:22:16 2008 for Library of Assembled Shared Sources by 1.5.7.1 |