libLAS API Reference (svn-trunk)
liblas::index_filter_iterator< T > Class Template Reference

#include <iterator.hpp>

Collaboration diagram for liblas::index_filter_iterator< T >:
Collaboration graph

Public Types

typedef std::input_iterator_tag iterator_category
typedef T value_type
typedef T const * pointer
typedef T const & reference
typedef ptrdiff_t difference_type

Public Member Functions

 index_filter_iterator ()
 Initializes iterator pointing to pass-the-end.
 index_filter_iterator (liblas::Index &index)
 Initializes iterator pointing to beginning of Index's filtered points sequence.
reference operator* () const
 Dereference operator.
pointer operator-> () const
 Pointer-to-member operator.
index_filter_iterator & operator++ ()
 Pre-increment operator.
index_filter_iterator operator++ (int)
 Post-increment operator.
bool equal (index_filter_iterator const &rhs) const
 Compare passed iterator to this.

Member Typedef Documentation

◆ difference_type

template<typename T>
typedef ptrdiff_t liblas::index_filter_iterator< T >::difference_type

◆ iterator_category

template<typename T>
typedef std::input_iterator_tag liblas::index_filter_iterator< T >::iterator_category

◆ pointer

template<typename T>
typedef T const* liblas::index_filter_iterator< T >::pointer

◆ reference

template<typename T>
typedef T const& liblas::index_filter_iterator< T >::reference

◆ value_type

template<typename T>
typedef T liblas::index_filter_iterator< T >::value_type

Constructor & Destructor Documentation

◆ index_filter_iterator() [1/2]

template<typename T>
liblas::index_filter_iterator< T >::index_filter_iterator ( )
inline

Initializes iterator pointing to pass-the-end.

Referenced by equal(), operator++(), and operator++().

Here is the caller graph for this function:

◆ index_filter_iterator() [2/2]

template<typename T>
liblas::index_filter_iterator< T >::index_filter_iterator ( liblas::Index & index)
inline

Initializes iterator pointing to beginning of Index's filtered points sequence.

No ownership transfer of index object occurs.

Member Function Documentation

◆ equal()

template<typename T>
bool liblas::index_filter_iterator< T >::equal ( index_filter_iterator< T > const & rhs) const
inline

Compare passed iterator to this.

Determine if both iterators apply to the same instance of liblas::Index class.

References index_filter_iterator().

Here is the call graph for this function:

◆ operator*()

template<typename T>
reference liblas::index_filter_iterator< T >::operator* ( ) const
inline

Dereference operator.

It is implemented in terms of Index::GetNextID function.

Referenced by operator->().

Here is the caller graph for this function:

◆ operator++() [1/2]

template<typename T>
index_filter_iterator & liblas::index_filter_iterator< T >::operator++ ( )
inline

Pre-increment operator.

Moves iterator to next record by calling Index::GetNextID.

References index_filter_iterator().

Here is the call graph for this function:

◆ operator++() [2/2]

template<typename T>
index_filter_iterator liblas::index_filter_iterator< T >::operator++ ( int )
inline

Post-increment operator.

Moves iterator to next record by calling Index::FindNextID.

References index_filter_iterator().

Here is the call graph for this function:

◆ operator->()

template<typename T>
pointer liblas::index_filter_iterator< T >::operator-> ( ) const
inline

Pointer-to-member operator.

It is implemented in terms of Index::GetPoint function.

References operator*().

Here is the call graph for this function:

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