libLAS API Reference  1.8.1
Public Types | Public Member Functions | List of all members
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

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. More...
 
 reader_iterator (liblas::Reader &reader)
 Initializes iterator pointing to beginning of LAS file sequence. More...
 
reference operator* () const
 Dereference operator. More...
 
pointer operator-> () const
 Pointer-to-member operator. More...
 
reader_iteratoroperator++ ()
 Pre-increment opertor. More...
 
reader_iterator operator++ (int)
 Post-increment opertor. More...
 
bool equal (reader_iterator const &rhs) const
 Compare passed iterator to this. More...
 

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

Member Typedef Documentation

template<typename T>
typedef ptrdiff_t liblas::reader_iterator< T >::difference_type
template<typename T>
typedef std::input_iterator_tag liblas::reader_iterator< T >::iterator_category
template<typename T>
typedef T const* liblas::reader_iterator< T >::pointer
template<typename T>
typedef T const& liblas::reader_iterator< T >::reference
template<typename T>
typedef T liblas::reader_iterator< T >::value_type

Constructor & Destructor Documentation

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

Initializes iterator pointing to pass-the-end.

template<typename T>
liblas::reader_iterator< T >::reader_iterator ( liblas::Reader reader)
inline

Initializes iterator pointing to beginning of LAS file sequence.

No ownership transfer of reader object occurs.

Member Function Documentation

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.

Referenced by liblas::operator==().

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

Dereference operator.

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

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

Pre-increment opertor.

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

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

Post-increment opertor.

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

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

Pointer-to-member operator.

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


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