NLAIAGENT::CVectorIterator Class Reference

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CVectorIterator:

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

Detailed Description

std::vector version of IBasicIterator implementation.

Author:
Chafik sameh

Nevrax France

Date:
2000

Definition at line 428 of file agent_object.h.

Public Member Functions

 CVectorIterator (std::vector< 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 ~CVectorIterator ()


Constructor & Destructor Documentation

NLAIAGENT::CVectorIterator::CVectorIterator std::vector< const IObjectIA * > &  l  )  [inline]
 

Definition at line 431 of file agent_object.h.

References const.

00431                                                                : CTemplateIterator<std::vector<const IObjectIA *> >(l)
00432                   {
00433                   }

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

Definition at line 435 of file agent_object.h.

00436                 {
00437                 }


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:49:27 2004 for NeL by doxygen 1.3.6