OTB  6.7.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 (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

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

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

Constructor

Definition at line 177 of file otbObjectList.h.

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

Constructor with iternal iterator parameter

Definition at line 180 of file otbObjectList.h.

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

Copy operator.

Definition at line 282 of file otbObjectList.h.

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

Member Function Documentation

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.

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

Get the current internal iterator

Definition at line 290 of file otbObjectList.h.

Referenced by otb::ObjectList< TObject >::Erase(), and otb::ObjectList< TObject >::Insert().

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

Difference comparison operator.

Definition at line 257 of file otbObjectList.h.

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

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

Add

Definition at line 223 of file otbObjectList.h.

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

Increment.

Definition at line 205 of file otbObjectList.h.

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

Definition at line 241 of file otbObjectList.h.

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

Remove

Definition at line 232 of file otbObjectList.h.

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

Decrement.

Definition at line 214 of file otbObjectList.h.

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

Definition at line 249 of file otbObjectList.h.

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

Instantiation operator.

Definition at line 273 of file otbObjectList.h.

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

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

Equality comparison operator.

Definition at line 265 of file otbObjectList.h.

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

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

template<class TObject>
friend class ConstIterator
friend

Definition at line 172 of file otbObjectList.h.

template<class TObject>
friend class ObjectList
friend

Definition at line 171 of file otbObjectList.h.

Member Data Documentation

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

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