NLAIAGENT::CTemplateIterator< typeClass > Class Template Reference

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CTemplateIterator< typeClass >:

NLAIAGENT::IBasicIterator NLAIAGENT::IConstBasicIterator NLAIAGENT::CListIterator NLAIAGENT::CVectorIterator

Detailed Description

template<class typeClass>
class NLAIAGENT::CTemplateIterator< typeClass >

Template version of IBasicIterator implementation.

Author:
Chafik sameh

Nevrax France

Date:
2000

Definition at line 300 of file agent_object.h.

Public Member Functions

 CTemplateIterator (typeClass &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 ~CTemplateIterator ()

Private Attributes

typeClass::iterator _I
typeClass & _ListType


Constructor & Destructor Documentation

template<class typeClass>
NLAIAGENT::CTemplateIterator< typeClass >::CTemplateIterator typeClass &  l  )  [inline]
 

Definition at line 307 of file agent_object.h.

00307                                                :_I(l.begin()),_ListType(l)
00308                 {
00309                 }

template<class typeClass>
virtual NLAIAGENT::CTemplateIterator< typeClass >::~CTemplateIterator  )  [inline, virtual]
 

Definition at line 310 of file agent_object.h.

00311                 {
00312                 }


Member Function Documentation

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

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]
 

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]
 

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]
 

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]
 

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]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 318 of file agent_object.h.

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


Field Documentation

template<class typeClass>
typeClass::iterator NLAIAGENT::CTemplateIterator< typeClass >::_I [private]
 

Definition at line 303 of file agent_object.h.

template<class typeClass>
typeClass& NLAIAGENT::CTemplateIterator< typeClass >::_ListType [private]
 

Definition at line 304 of file agent_object.h.


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