NLAIAGENT::CConstIteratorContener Class Reference

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CConstIteratorContener:

NLAIAGENT::IConstBasicIterator NLAIAGENT::CIteratorContener

Detailed Description

This class is very use in all algorithme. The advatange is that programmer don't have to delete an abstract iterator IBasicIterator, and he can manipulate this class withaout memory leek.

Author:
Chafik sameh

Nevrax France

Date:
2000

Definition at line 462 of file agent_object.h.

Public Member Functions

 CConstIteratorContener (IBasicIterator *i)
 CConstIteratorContener (const CConstIteratorContener &i)
virtual bool isInBegin () const
virtual bool isInEnd () const
virtual operator const IObjetOp * () const
virtual const IObjetOpoperator++ (int)
virtual const IObjetOpoperator-- (int)
virtual ~CConstIteratorContener ()

Protected Attributes

IBasicIterator_I


Constructor & Destructor Documentation

NLAIAGENT::CConstIteratorContener::CConstIteratorContener const CConstIteratorContener i  )  [inline]
 

Definition at line 467 of file agent_object.h.

00467                                                                        :_I(i._I)
00468                 {
00469                 }

NLAIAGENT::CConstIteratorContener::CConstIteratorContener IBasicIterator i  )  [inline]
 

Definition at line 471 of file agent_object.h.

00471                                                          :_I(i)
00472                 {
00473                 }

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

Definition at line 475 of file agent_object.h.

00476                 {
00477                         delete _I;
00478                 }


Member Function Documentation

virtual bool NLAIAGENT::CConstIteratorContener::isInBegin  )  const [inline, virtual]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 499 of file agent_object.h.

References NLAIAGENT::IConstBasicIterator::isInBegin().

00500                 {
00501                         return _I->isInBegin();
00502                 }

virtual bool NLAIAGENT::CConstIteratorContener::isInEnd  )  const [inline, virtual]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 495 of file agent_object.h.

References NLAIAGENT::IConstBasicIterator::isInEnd().

Referenced by NLAIAGENT::CAgentScript::addDynamicAgent(), NLAILOGIC::CFirstOrderAssert::backward(), NLAISCRIPT::CCallPrint::format(), NLAILOGIC::CFirstOrderAssert::getFacts(), NLAILOGIC::CRule::init(), NLAIAGENT::CMsgIStream::isEnd(), NLAISCRIPT::CCodeBrancheRunDebug::printArgs(), NLAISCRIPT::CCallPrint::printList(), NLAISCRIPT::CParam::push(), NLAILOGIC::CFirstOrderAssert::removeFact(), NLAIAGENT::CVolatilMemmory::runMessage(), NLAIAGENT::IBaseGroupType::runMethodeMember(), NLAISCRIPT::CMethodContextDebug::saveContext(), NLAISCRIPT::CMethodContext::saveContext(), NLAIAGENT::IListManager::sendMessage(), and NLAISCRIPT::CCompilateur::validateHierarchyMethode().

00496                 {                       
00497                         return _I->isInEnd();
00498                 }

virtual NLAIAGENT::CConstIteratorContener::operator const IObjetOp *  )  const [inline, virtual]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 490 of file agent_object.h.

00491                 {
00492                         return (const IObjetOp *)*_I;
00493                 }               

virtual const IObjetOp* NLAIAGENT::CConstIteratorContener::operator++ int   )  [inline, virtual]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 480 of file agent_object.h.

00481                 {
00482                         const IObjetOp *a = (*_I)++;                    
00483                         return a;
00484                 }

virtual const IObjetOp* NLAIAGENT::CConstIteratorContener::operator-- int   )  [inline, virtual]
 

Implements NLAIAGENT::IConstBasicIterator.

Definition at line 485 of file agent_object.h.

00486                 {
00487                         const IObjetOp *a = (*_I) --;                   
00488                         return a;
00489                 }               


Field Documentation

IBasicIterator* NLAIAGENT::CConstIteratorContener::_I [protected]
 

Definition at line 465 of file agent_object.h.


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