NLAIAGENT::CListIterator Class Reference

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CListIterator:

NLAIAGENT::CTemplateIterator< typeClass > NLAIAGENT::IBasicIterator NLAIAGENT::IConstBasicIterator

Detailed Description

std::list version of IBasicIterator implementation.

Author:
Chafik sameh

Nevrax France

Date:
2000

Definition at line 395 of file agent_object.h.

Public Member Functions

 CListIterator (std::list< const IObjectIA * > &l)
virtual void erase ()
virtual bool isInBegin () const
virtual bool isInEnd () const
virtual operator const IObjetOp * () const
virtual const IObjetOpoperator++ (int)
virtual const IObjetOpoperator-- (int)
virtual ~CListIterator ()


Constructor & Destructor Documentation

NLAIAGENT::CListIterator::CListIterator std::list< const IObjectIA * > &  l  )  [inline]
 

Definition at line 398 of file agent_object.h.

References const.

00398                                                             : CTemplateIterator<std::list<const IObjectIA *> >(l)
00399                   {
00400                   }

virtual NLAIAGENT::CListIterator::~CListIterator  )  [inline, virtual]
 

Definition at line 402 of file agent_object.h.

00403                 {
00404                 }


Member Function Documentation

template<class typeClass>
virtual void NLAIAGENT::CTemplateIterator< typeClass >::erase  )  [inline, virtual, inherited]
 

Implements NLAIAGENT::IBasicIterator.

Definition at line 328 of file agent_object.h.

00329                 {
00330                         typename typeClass::iterator temp = _I;
00331                         _I++;
00332                         _ListType.erase(temp);
00333                 }

template<class typeClass>
virtual bool NLAIAGENT::CTemplateIterator< typeClass >::isInBegin  )  const [inline, virtual, inherited]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 340 of file agent_object.h.

00341                 {
00342                         return _I == _ListType.begin();
00343                 }

template<class typeClass>
virtual bool NLAIAGENT::CTemplateIterator< typeClass >::isInEnd  )  const [inline, virtual, inherited]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 335 of file agent_object.h.

00336                 {                       
00337                         return _I == _ListType.end();           
00338                 }

template<class typeClass>
virtual NLAIAGENT::CTemplateIterator< typeClass >::operator const IObjetOp *  )  const [inline, virtual, inherited]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 323 of file agent_object.h.

00324                 {
00325                         return (const IObjetOp *)*_I;
00326                 }

template<class typeClass>
virtual const IObjetOp* NLAIAGENT::CTemplateIterator< typeClass >::operator++ int   )  [inline, virtual, inherited]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 314 of file agent_object.h.

00315                 {
00316                         return (const IObjetOp*)*_I++;
00317                 }

template<class typeClass>
virtual const IObjetOp* NLAIAGENT::CTemplateIterator< typeClass >::operator-- int   )  [inline, virtual, inherited]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 318 of file agent_object.h.

00319                 {
00320                         return (const IObjetOp*)*_I--;
00321                 }


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 09:17:21 2004 for NeL by doxygen 1.3.6