Orfeo Toolbox  3.16
Classes | Public Member Functions | Private Member Functions | Private Attributes | Friends
otb::ogr::Layer::feature_iter< Value > Class Template Reference

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. More...

#include <otbOGRLayerWrapper.h>

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

List of all members.

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 * >, enabler >::type=enabler())

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 feature_iter
class boost::iterator_core_access

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 b = begin();
iterator i = std::advance(b, 1);
b++; // this is invalid

Definition at line 316 of file otbOGRLayerWrapper.h.


Constructor & Destructor Documentation

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

Definition at line 321 of file otbOGRLayerWrapper.h.

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

Definition at line 323 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 * >, enabler >::type  = enabler() 
)
inline

Definition at line 325 of file otbOGRLayerWrapper.h.


Member Function Documentation

template<class Value>
Value& otb::ogr::Layer::feature_iter< Value >::dereference ( ) const
inlineprivate
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

Friends And Related Function Documentation

template<class Value>
friend class feature_iter
friend

Definition at line 335 of file otbOGRLayerWrapper.h.

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

Definition at line 334 of file otbOGRLayerWrapper.h.


Member Data Documentation

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

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

Generated at Sun Feb 3 2013 04:27:15 for Orfeo Toolbox with doxygen 1.8.1.1