42 #ifndef LIBLAS_ITERATOR_HPP_INCLUDED 43 #define LIBLAS_ITERATOR_HPP_INCLUDED 80 assert(0 != m_reader);
88 assert(0 != m_reader);
91 return m_reader->GetPoint();
94 throw std::runtime_error(
"reader is null and iterator not dereferencable");
101 return &(operator*());
108 assert(0 != m_reader);
126 return m_reader == rhs.m_reader;
133 if (0 != m_reader && !(m_reader->ReadNextPoint()))
143 template <
typename T>
146 return lhs.
equal(rhs);
150 template <
typename T>
153 return (!(lhs == rhs));
160 template <
typename T>
177 assert(0 != m_writer);
184 assert(0 != m_writer);
187 ret = m_writer->WritePoint(value);
219 template <
typename T>
240 assert(0 != m_index);
248 assert(0 != m_index);
254 throw std::runtime_error(
"index is null and iterator not dereferencable");
261 return &(operator*());
268 assert(0 != m_index);
286 return m_index == rhs.m_index;
318 #endif // LIBLAS_ITERATOR_HPP_INCLUDED writer_iterator(liblas::Writer &writer)
Initialize iterator with given writer.
Definition: iterator.hpp:174
T const & reference
Definition: iterator.hpp:67
reference operator*() const
Dereference operator.
Definition: iterator.hpp:246
T value_type
Definition: iterator.hpp:225
bool operator!=(Classification const &lhs, Classification const &rhs)
Not-equal-to operator implemented in terms of Classification::equal.
Definition: classification.hpp:232
#define LAS_DLL
Definition: export.hpp:58
T const * pointer
Definition: iterator.hpp:66
void value_type
Definition: iterator.hpp:166
index_filter_iterator()
Initializes iterator pointing to pass-the-end.
Definition: iterator.hpp:231
ptrdiff_t difference_type
Definition: iterator.hpp:68
T const & reference
Definition: iterator.hpp:168
T const * pointer
Definition: iterator.hpp:226
writer_iterator operator++(int)
Post-increment operator.
Definition: iterator.hpp:208
Input iterator associated with liblas::LASReader.
Definition: iterator.hpp:60
std::output_iterator_tag iterator_category
Definition: iterator.hpp:165
pointer operator->() const
Pointer-to-member operator.
Definition: iterator.hpp:259
reader_iterator()
Initializes iterator pointing to pass-the-end.
Definition: iterator.hpp:71
Output iterator associated with liblas::LASWriter.
Definition: iterator.hpp:161
reader_iterator operator++(int)
Post-increment opertor.
Definition: iterator.hpp:115
Definition: iterator.hpp:220
reference operator*() const
Dereference operator.
Definition: iterator.hpp:86
T value_type
Definition: iterator.hpp:65
reader_iterator< Point > lasreader_iterator
Public specialization of LASReader input iterator for liblas::LASPoint type.
Definition: iterator.hpp:305
pointer operator->() const
Pointer-to-member operator.
Definition: iterator.hpp:99
index_filter_iterator operator++(int)
Post-increment operator.
Definition: iterator.hpp:275
Defines public interface to LAS reader implementation.
Definition: reader.hpp:66
reader_iterator & operator++()
Pre-increment opertor.
Definition: iterator.hpp:106
Definition: index.hpp:119
reader_iterator(liblas::Reader &reader)
Initializes iterator pointing to beginning of LAS file sequence.
Definition: iterator.hpp:77
bool operator==(Classification const &lhs, Classification const &rhs)
Equal-to operator implemented in terms of Classification::equal.
Definition: classification.hpp:226
Namespace grouping all elements of libLAS public interface.
Definition: bounds.hpp:60
bool equal(index_filter_iterator const &rhs) const
Compare passed iterator to this.
Definition: iterator.hpp:284
Defines public interface to LAS writer implementation.
Definition: writer.hpp:63
writer_iterator & operator*()
Dereference operator.
Definition: iterator.hpp:194
index_filter_iterator(liblas::Index &index)
Initializes iterator pointing to beginning of Index's filtered points sequence.
Definition: iterator.hpp:237
ptrdiff_t difference_type
Definition: iterator.hpp:228
void pointer
Definition: iterator.hpp:167
writer_iterator & operator=(reference value)
Dereference assignment operator.
Definition: iterator.hpp:182
T const & reference
Definition: iterator.hpp:227
bool equal(reader_iterator const &rhs) const
Compare passed iterator to this.
Definition: iterator.hpp:124
writer_iterator< Point > laswriter_iterator
Public specialization of LASWriter output iterator for liblas::LASPoint type.
Definition: iterator.hpp:308
writer_iterator & operator++()
Pre-increment operator.
Definition: iterator.hpp:201
std::input_iterator_tag iterator_category
Definition: iterator.hpp:224
Definition: schema.hpp:80
std::input_iterator_tag iterator_category
Definition: iterator.hpp:64
void difference_type
Definition: iterator.hpp:169
index_filter_iterator & operator++()
Pre-increment operator.
Definition: iterator.hpp:266