WSF
WsfComponentListT< COMPONENT_TYPE >::Iterator Class Reference

#include <WsfComponentList.hpp>

Public Member Functions

 Iterator (const ComponentList::const_iterator &aSrc)
Iteratoroperator++ ()
 Prefix increment.
bool operator!= (const Iterator &aRhs) const
 Test for operator inequality.
ComponentTypeoperator* () const
 Return the pointer to the component.
ComponentTypeoperator-> () const
 Return the pointer to the component.

Detailed Description

template<class COMPONENT_TYPE>
class WsfComponentListT< COMPONENT_TYPE >::Iterator

An iterator that provides sequential access to the components in the list. This is a 'const_iterator'; the list cannot be changed.

Usage:

for (WsfComponentList<T>::Iterator i = componentList.Begin(); i != componentList.End(); ++i)
{
T* tPtr = *i;
...
}
WsfComponentList()
Definition WsfComponentList.cpp:15

Constructor & Destructor Documentation

◆ Iterator()

template<class COMPONENT_TYPE>
WsfComponentListT< COMPONENT_TYPE >::Iterator::Iterator ( const ComponentList::const_iterator & aSrc)
inline

Referenced by operator!=(), and operator++().

Member Function Documentation

◆ operator!=()

template<class COMPONENT_TYPE>
bool WsfComponentListT< COMPONENT_TYPE >::Iterator::operator!= ( const Iterator & aRhs) const
inline

Test for operator inequality.

References Iterator().

◆ operator*()

template<class COMPONENT_TYPE>
ComponentType * WsfComponentListT< COMPONENT_TYPE >::Iterator::operator* ( ) const
inline

Return the pointer to the component.

◆ operator++()

template<class COMPONENT_TYPE>
Iterator & WsfComponentListT< COMPONENT_TYPE >::Iterator::operator++ ( )
inline

Prefix increment.

References Iterator().

◆ operator->()

template<class COMPONENT_TYPE>
ComponentType * WsfComponentListT< COMPONENT_TYPE >::Iterator::operator-> ( ) const
inline

Return the pointer to the component.


The documentation for this class was generated from the following file:
Copyrights Multiple, All Rights Reserved