OTB  7.2.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
otb::ObjectList< TObject >::Iterator Class Reference

#include <otbObjectList.h>

Public Types

typedef InternalContainerType::iterator InternalIteratorType
 

Public Member Functions

ObjectPointerType Get (void)
 
InternalIteratorTypeGetIter (void)
 
 Iterator ()
 
 Iterator (InternalIteratorType iter)
 
 Iterator (const Iterator &it)
 
bool operator!= (const Iterator &it)
 
Iterator operator+ (int i)
 
Iteratoroperator++ ()
 
Iterator operator+= (int i)
 
Iterator operator- (int i)
 
Iteratoroperator-- ()
 
Iterator operator-= (int i)
 
Iteratoroperator= (const Iterator &it)
 
bool operator== (const Iterator &it)
 
void Set (ObjectPointerType element)
 

Private Attributes

InternalIteratorType m_Iter
 

Friends

class ConstIterator
 
class ObjectList
 

Detailed Description

template<class TObject>
class otb::ObjectList< TObject >::Iterator

Iterator of the object list.

Definition at line 168 of file otbObjectList.h.

Member Typedef Documentation

◆ InternalIteratorType

template<class TObject>
typedef InternalContainerType::iterator otb::ObjectList< TObject >::Iterator::InternalIteratorType

typedef of the internal iterator

Definition at line 174 of file otbObjectList.h.

Constructor & Destructor Documentation

◆ Iterator() [1/3]

template<class TObject>
otb::ObjectList< TObject >::Iterator::Iterator ( )
inline

Constructor

Definition at line 177 of file otbObjectList.h.

◆ Iterator() [2/3]

template<class TObject>
otb::ObjectList< TObject >::Iterator::Iterator ( InternalIteratorType  iter)
inline

Constructor with iternal iterator parameter

Definition at line 180 of file otbObjectList.h.

◆ Iterator() [3/3]

template<class TObject>
otb::ObjectList< TObject >::Iterator::Iterator ( const Iterator it)
inline

Copy operator.

Definition at line 280 of file otbObjectList.h.

References otb::ObjectList< TObject >::Iterator::m_Iter.

Member Function Documentation

◆ Get()

template<class TObject>
ObjectPointerType otb::ObjectList< TObject >::Iterator::Get ( void  )
inline

Get the current object.

Returns
The current object pointed by the iterator.

Definition at line 189 of file otbObjectList.h.

◆ GetIter()

template<class TObject>
InternalIteratorType& otb::ObjectList< TObject >::Iterator::GetIter ( void  )
inline

Get the current internal iterator

Definition at line 288 of file otbObjectList.h.

◆ operator!=()

template<class TObject>
bool otb::ObjectList< TObject >::Iterator::operator!= ( const Iterator it)
inline

Difference comparison operator.

Definition at line 255 of file otbObjectList.h.

References otb::ObjectList< TObject >::Iterator::m_Iter.

◆ operator+()

template<class TObject>
Iterator otb::ObjectList< TObject >::Iterator::operator+ ( int  i)
inline

Add

Definition at line 223 of file otbObjectList.h.

◆ operator++()

template<class TObject>
Iterator& otb::ObjectList< TObject >::Iterator::operator++ ( )
inline

Increment.

Definition at line 205 of file otbObjectList.h.

◆ operator+=()

template<class TObject>
Iterator otb::ObjectList< TObject >::Iterator::operator+= ( int  i)
inline

Definition at line 240 of file otbObjectList.h.

◆ operator-()

template<class TObject>
Iterator otb::ObjectList< TObject >::Iterator::operator- ( int  i)
inline

Remove

Definition at line 232 of file otbObjectList.h.

◆ operator--()

template<class TObject>
Iterator& otb::ObjectList< TObject >::Iterator::operator-- ( )
inline

Decrement.

Definition at line 214 of file otbObjectList.h.

◆ operator-=()

template<class TObject>
Iterator otb::ObjectList< TObject >::Iterator::operator-= ( int  i)
inline

Definition at line 247 of file otbObjectList.h.

◆ operator=()

template<class TObject>
Iterator& otb::ObjectList< TObject >::Iterator::operator= ( const Iterator it)
inline

Instantiation operator.

Definition at line 271 of file otbObjectList.h.

References otb::ObjectList< TObject >::Iterator::m_Iter.

◆ operator==()

template<class TObject>
bool otb::ObjectList< TObject >::Iterator::operator== ( const Iterator it)
inline

Equality comparison operator.

Definition at line 263 of file otbObjectList.h.

References otb::ObjectList< TObject >::Iterator::m_Iter.

◆ Set()

template<class TObject>
void otb::ObjectList< TObject >::Iterator::Set ( ObjectPointerType  element)
inline

Set the current object

Definition at line 197 of file otbObjectList.h.

Friends And Related Function Documentation

◆ ConstIterator

template<class TObject>
friend class ConstIterator
friend

Definition at line 172 of file otbObjectList.h.

◆ ObjectList

template<class TObject>
friend class ObjectList
friend

Definition at line 171 of file otbObjectList.h.

Member Data Documentation

◆ m_Iter

template<class TObject>
InternalIteratorType otb::ObjectList< TObject >::Iterator::m_Iter
private

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