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

#include <otbObjectList.h>

+ Collaboration diagram for otb::ObjectList< TObject >::Iterator:

Public Types

typedef InternalContainerType::iterator InternalIteratorType
 

Public Member Functions

ObjectPointerType Get (void)
 
InternalIteratorTypeGetIter (void)
 
 Iterator ()
 
 Iterator (const Iterator &it)
 
 Iterator (InternalIteratorType iter)
 
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 279 of file otbObjectList.h.

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 188 of file otbObjectList.h.

◆ GetIter()

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

Get the current internal iterator

Definition at line 286 of file otbObjectList.h.

◆ operator!=()

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

Difference comparison operator.

Definition at line 254 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 222 of file otbObjectList.h.

◆ operator++()

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

Increment.

Definition at line 204 of file otbObjectList.h.

◆ operator+=()

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

Definition at line 239 of file otbObjectList.h.

◆ operator-()

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

Remove

Definition at line 231 of file otbObjectList.h.

◆ operator--()

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

Decrement.

Definition at line 213 of file otbObjectList.h.

◆ operator-=()

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

Definition at line 246 of file otbObjectList.h.

◆ operator=()

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

Instantiation operator.

Definition at line 270 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 262 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 196 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: