OTB  6.7.0
Orfeo Toolbox
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
otb::ogr::Layer::feature_iter< Value > Class Template Reference

#include <otbOGRLayerWrapper.h>

+ Inheritance diagram for otb::ogr::Layer::feature_iter< Value >:
+ Collaboration diagram for otb::ogr::Layer::feature_iter< Value >:

Classes

struct  enabler
 

Public Member Functions

 feature_iter ()
 
 feature_iter (otb::ogr::Layer &layer)
 
template<class OtherValue >
 feature_iter (feature_iter< OtherValue > const &other, typename boost::enable_if< boost::is_convertible< OtherValue *, Value * > >::type *=nullptr)
 

Private Member Functions

Value & dereference () const
 
template<class OtherValue >
bool equal (feature_iter< OtherValue > const &other) const
 
void increment ()
 

Private Attributes

otb::ogr::Feature m_Crt
 
otb::ogr::Layerm_Layer
 

Friends

class boost::iterator_core_access
 
template<class >
class feature_iter
 

Detailed Description

template<class Value>
class otb::ogr::Layer::feature_iter< Value >

Implementation class for Feature iterator. This iterator is a single pass iterator. We may fetch the Feature referenced by an iterator previously stored, but never resume the iteration after a call to Layer::begin(), Layer::start_at(), Layer::CreateFeature(), Layer::DeleteFeature(), Layer::GetFeature(), Layer::SetFeature(), nor fork the iteration.

iterator i = std::advance(b, 1);
b++; // this is invalid

Definition at line 341 of file otbOGRLayerWrapper.h.

Constructor & Destructor Documentation

template<class Value>
otb::ogr::Layer::feature_iter< Value >::feature_iter ( )
inline

Definition at line 346 of file otbOGRLayerWrapper.h.

template<class Value>
otb::ogr::Layer::feature_iter< Value >::feature_iter ( otb::ogr::Layer layer)
inlineexplicit

Definition at line 348 of file otbOGRLayerWrapper.h.

template<class Value>
template<class OtherValue >
otb::ogr::Layer::feature_iter< Value >::feature_iter ( feature_iter< OtherValue > const &  other,
typename boost::enable_if< boost::is_convertible< OtherValue *, Value * > >::type = nullptr 
)
inline

Definition at line 350 of file otbOGRLayerWrapper.h.

Member Function Documentation

template<class Value>
Value& otb::ogr::Layer::feature_iter< Value >::dereference ( ) const
inlineprivate

Definition at line 368 of file otbOGRLayerWrapper.h.

template<class Value>
template<class OtherValue >
bool otb::ogr::Layer::feature_iter< Value >::equal ( feature_iter< OtherValue > const &  other) const
inlineprivate
template<class Value>
void otb::ogr::Layer::feature_iter< Value >::increment ( )
inlineprivate

Definition at line 363 of file otbOGRLayerWrapper.h.

Friends And Related Function Documentation

template<class Value>
friend class boost::iterator_core_access
friend

Definition at line 357 of file otbOGRLayerWrapper.h.

template<class Value>
template<class >
friend class feature_iter
friend

Definition at line 358 of file otbOGRLayerWrapper.h.

Member Data Documentation

template<class Value>
otb::ogr::Feature otb::ogr::Layer::feature_iter< Value >::m_Crt
mutableprivate

Definition at line 372 of file otbOGRLayerWrapper.h.

Referenced by otb::ogr::Layer::feature_iter< Value >::equal().

template<class Value>
otb::ogr::Layer* otb::ogr::Layer::feature_iter< Value >::m_Layer
private

Definition at line 371 of file otbOGRLayerWrapper.h.


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