liblas::reader_iterator< T > Class Template Reference

Input iterator associated with liblas::LASReader. More...

#include <iterator.hpp>

Collaboration diagram for liblas::reader_iterator< T >:

Collaboration graph
[legend]
List of all members.

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

 reader_iterator ()
 Initializes iterator pointing to pass-the-end.
 reader_iterator (liblas::LASReader &reader)
 Initializes iterator pointing to beginning of LAS file sequence.
reference operator * () const
 Dereference operator.
pointer operator-> () const
 Pointer-to-member operator.
reader_iteratoroperator++ ()
 Pre-increment opertor.
reader_iterator operator++ (int)
 Post-increment opertor.
bool equal (reader_iterator const &rhs) const
 Compare passed iterator to this.

Detailed Description

template<typename T>
class liblas::reader_iterator< T >

Input iterator associated with liblas::LASReader.

It allows to read LAS file records in similar way to elements of STL container, as well as apply STL algorithms that accept pair of input iterators.

See also:
About Input Iterator at http://www.sgi.com/tech/stl/InputIterator.html

Definition at line 58 of file iterator.hpp.


Member Typedef Documentation

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

Definition at line 62 of file iterator.hpp.

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

Definition at line 63 of file iterator.hpp.

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

Definition at line 64 of file iterator.hpp.

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

Definition at line 65 of file iterator.hpp.

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

Definition at line 66 of file iterator.hpp.


Constructor & Destructor Documentation

template<typename T>
liblas::reader_iterator< T >::reader_iterator (  )  [inline]

Initializes iterator pointing to pass-the-end.

Definition at line 69 of file iterator.hpp.

template<typename T>
liblas::reader_iterator< T >::reader_iterator ( liblas::LASReader reader  )  [inline]

Initializes iterator pointing to beginning of LAS file sequence.

No ownership transfer of reader object occurs.

Definition at line 75 of file iterator.hpp.


Member Function Documentation

template<typename T>
reference liblas::reader_iterator< T >::operator * (  )  const [inline]

Dereference operator.

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

Definition at line 84 of file iterator.hpp.

References liblas::LASReader::GetPoint().

Referenced by liblas::reader_iterator< T >::operator->().

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename T>
pointer liblas::reader_iterator< T >::operator-> (  )  const [inline]

Pointer-to-member operator.

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

Definition at line 92 of file iterator.hpp.

References liblas::reader_iterator< T >::operator *().

Here is the call graph for this function:

template<typename T>
reader_iterator& liblas::reader_iterator< T >::operator++ (  )  [inline]

Pre-increment opertor.

Moves iterator to next record by calling LASReader::ReadNextPoint.

Definition at line 99 of file iterator.hpp.

template<typename T>
reader_iterator liblas::reader_iterator< T >::operator++ ( int   )  [inline]

Post-increment opertor.

Moves iterator to next record by calling LASReader::ReadNextPoint.

Definition at line 108 of file iterator.hpp.

template<typename T>
bool liblas::reader_iterator< T >::equal ( reader_iterator< T > const &  rhs  )  const [inline]

Compare passed iterator to this.

Determine if both iterators apply to the same instance of LASReader class.

Definition at line 117 of file iterator.hpp.

References liblas::reader_iterator< T >::m_reader.

Referenced by liblas::operator==().

Here is the caller graph for this function:


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