Orxonox: src/core/Iterator.h File Reference

# Iterator.h File Reference

Definition and implementation of the Iterator class. More...

`#include "CorePrereqs.h"`
`#include "Identifier.h"`
`#include "ObjectListBase.h"`

## Namespaces

namespace | orxonox

## Classes

class | orxonox::Iterator< T >
| The Iterator allows to iterate through a given ObjectList. More...

## Typedefs

typedef Iterator< OrxonoxClass > | orxonox::BaseIterator

## Detailed Description

Definition and implementation of the Iterator class.

The Iterator of a given class allows to iterate through an ObjectList. Objects in this list are casted to the template argument of the Iterator.

Usage: for (Iterator<myClass> it = anyidentifier->getObjects()->begin(); it != anyidentifier->getObjects()->end(); ++it) { it->someFunction(...); myClass* myObject = *it; }