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

Iterator of the object list. More...

#include <otbObjectList.h>

Public Types

typedef
InternalContainerType::iterator 
InternalIteratorType
 

Public Member Functions

 Iterator ()
 
 Iterator (InternalIteratorType iter)
 
 Iterator (const Iterator &it)
 
ObjectPointerType Get (void)
 
InternalIteratorTypeGetIter (void)
 
bool operator!= (const Iterator &it)
 
Iterator operator+ (int i)
 
Iteratoroperator++ ()
 
Iterator operator- (int i)
 
Iteratoroperator-- ()
 
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 141 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 147 of file otbObjectList.h.

Constructor & Destructor Documentation

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

Constructor

Definition at line 149 of file otbObjectList.h.

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

Constructor with iternal iterator parameter

Definition at line 151 of file otbObjectList.h.

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

Copy operator.

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

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

Get the current internal iterator

Definition at line 237 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 207 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 190 of file otbObjectList.h.

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

Increment.

Definition at line 174 of file otbObjectList.h.

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

Remove

Definition at line 199 of file otbObjectList.h.

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

Decrement.

Definition at line 182 of file otbObjectList.h.

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

Instantiation operator.

Definition at line 221 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 214 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 166 of file otbObjectList.h.

Friends And Related Function Documentation

template<class TObject>
friend class ConstIterator
friend

Definition at line 145 of file otbObjectList.h.

template<class TObject>
friend class ObjectList
friend

Definition at line 144 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:

Generated at Sat Mar 8 2014 18:41:46 for Orfeo Toolbox with doxygen 1.8.3.1