# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NLAIAGENT::IBaseGroupType Class Reference

Base class for a IObjetOp list object. More...

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::IBaseGroupType:

NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable NLAIAGENT::CGroupType NLAIAGENT::CVectorGroupType NLAIAGENT::IListBasicManager NLAISCRIPT::CListClass NLAISCRIPT::CPramContainer NLAIAGENT::IListManager NLAIAGENT::IMessageBase NLAIAGENT::CListGroupManager NLAIAGENT::CVectorGroupManager NLAIAGENT::CMessageList NLAIAGENT::CMessageScript NLAIAGENT::CMessageVector NLAIAGENT::CCancelGoalMsg NLAIAGENT::CConnectObjectValueMsg NLAIAGENT::CFactMsg NLAIAGENT::CFailureMsg NLAIAGENT::CGetValueMsg NLAIAGENT::CGoalMsg NLAIAGENT::CMsgDebug NLAIAGENT::CNotifyParentScript NLAIAGENT::COnChangeMsg NLAIAGENT::CSetValueMsg NLAIAGENT::CSuccessMsg List of all members.

Public Methods

 IBaseGroupType (const IBaseGroupType &c)
 IBaseGroupType ()
virtual ~IBaseGroupType ()
Some IObjetOp method definition.
virtual IObjetOpoperator+= (IObjetOp *a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator-= (IObjetOp *a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator+= (const IObjetOp &a)
 add the operater by anather. More...

virtual IObjetOpoperator-= (const IObjetOp &a)
 throw (NLAIE::CExceptionNotImplemented). More...

virtual IObjetOpoperator! () const=0
 throw (NLAIE::CExceptionNotImplemented). More...

virtual bool isTrue () const
 throw (NLAIE::CExceptionNotImplemented). More...

Some IObjectIA method definition.
virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. More...

virtual sint32 isClassInheritedFrom (const IVarName &) const
 isClassInheritedFrom(className) allow us to known if this class have a base class with the name className. More...

virtual tQueue isMember (const IVarName *, const IVarName *, const IObjectIA &) const
 The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search. More...

virtual CProcessResult runMethodeMember (sint32, sint32, IObjectIA *)
 The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method. More...

virtual CProcessResult runMethodeMember (sint32 index, IObjectIA *)
 The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method. More...

List method manipulation.
virtual IObjectIAoperator= (const IObjectIA &a)=0
 Equality operator. More...

virtual const IObjectIAoperator[] (sint32) const=0
virtual void set (int, IObjectIA *)=0
 Push an IObjectIA at the position indicate by the int. More...

virtual void push (const IObjectIA *o)=0
 Push an IObjectIA back. More...

virtual void pushFront (const IObjectIA *o)=0
 Push an IObjectIA front. More...

virtual void cpy (const IObjectIA &o)=0
 Push an IObjectIA back using the clone method. More...

virtual CIteratorContener getIterator ()=0
 Get an iterator to parse the list. More...

virtual CConstIteratorContener getConstIterator () const=0
virtual const IObjectIApop ()=0
 Pop the back IObjectIA and return it. More...

virtual const IObjectIApopFront ()=0
 Pop the front IObjectIA and return it. More...

virtual const IObjectIAget () const=0
 return the back IObjectIA. More...

virtual const IObjectIAgetFront () const=0
 return the front IObjectIA. More...

virtual sint32 size () const=0
 get the size of the list. More...

virtual const IObjectIAfind (const IObjectIA &obj) const=0
 Find an element on the list the operator== is use. More...

virtual void eraseAll (const IObjectIA &)=0
 Erase all element find equal at the const IObjectIA & on argument. More...

virtual void erase (const IObjectIA *)=0
 Erase the element how have the same pointer memory as the argument const IObjectIA *. More...

virtual void erase (const IObjectIA &)=0
 Erase the first element find equal at the const IObjectIA& on argument. More...

virtual void erase (std::list< const IObjectIA * > &)=0
 Erase all element contain in the list. More...

virtual void clear ()=0
 Clear the list. More...


Static Public Attributes

CMethodCall _Method []

Detailed Description

Base class for a IObjetOp list object.

Author:
Portier Pierre , Chafik sameh , Nevrax France
Date:
2000

Definition at line 539 of file agent_object.h.


Constructor & Destructor Documentation

NLAIAGENT::IBaseGroupType::IBaseGroupType const IBaseGroupType &    c [inline]
 

Definition at line 556 of file agent_object.h.

References IBaseGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

Referenced by NLAIAGENT::IMessageBase::getMessageGroup, IBaseGroupType, NLAIAGENT::IListBasicManager::load, NLAIAGENT::CCancelGoalMsg::runMethodeMember, NLAIAGENT::CGoalMsg::runMethodeMember, NLAIAGENT::CGetValueMsg::runMethodeMember, NLAIAGENT::CFactMsg::runMethodeMember, NLAIAGENT::CConnectObjectValueMsg::runMethodeMember, NLAIAGENT::CFailureMsg::runMethodeMember, NLAIAGENT::CSuccessMsg::runMethodeMember, NLAIAGENT::IMessageBase::runMethodeMember, NLAIAGENT::CVectorGroupType::runMethodeMember, runMethodeMember, and NLAIAGENT::IMessageBase::setMessageGroup.

NLAIAGENT::IBaseGroupType::IBaseGroupType  
 

Definition at line 60 of file group_type.cpp.

NLAIAGENT::IBaseGroupType::~IBaseGroupType   [virtual]
 

Definition at line 64 of file group_type.cpp.


Member Function Documentation

virtual void NLAIAGENT::IBaseGroupType::clear   [pure virtual]
 

Clear the list.

Implemented in NLAIAGENT::CGroupType.

virtual void NLAIAGENT::IBaseGroupType::cpy const IObjectIA   o [pure virtual]
 

Push an IObjectIA back using the clone method.

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAISCRIPT::CCompilateur::buildObject, NLAISCRIPT::CCompilateur::nameMethodeProcessing, operator+=, and NLAISCRIPT::CMakeArgOpCode::runOpCode.

virtual void NLAIAGENT::IBaseGroupType::erase std::list< const IObjectIA * > &    [pure virtual]
 

Erase all element contain in the list.

Implemented in NLAIAGENT::CGroupType.

virtual void NLAIAGENT::IBaseGroupType::erase const IObjectIA   [pure virtual]
 

Erase the first element find equal at the const IObjectIA& on argument.

Implemented in NLAIAGENT::CGroupType.

virtual void NLAIAGENT::IBaseGroupType::erase const IObjectIA   [pure virtual]
 

Erase the element how have the same pointer memory as the argument const IObjectIA *.

Implemented in NLAIAGENT::CGroupType.

Referenced by operator-=, and NLAICHARACTER::IZone::removeObject.

virtual void NLAIAGENT::IBaseGroupType::eraseAll const IObjectIA   [pure virtual]
 

Erase all element find equal at the const IObjectIA & on argument.

Implemented in NLAIAGENT::CGroupType.

virtual const IObjectIA* NLAIAGENT::IBaseGroupType::find const IObjectIA   obj const [pure virtual]
 

Find an element on the list the operator== is use.

Implemented in NLAIAGENT::CGroupType.

virtual const IObjectIA* NLAIAGENT::IBaseGroupType::get   const [pure virtual]
 

return the back IObjectIA.

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAISCRIPT::CCompilateur::findMethode, NLAIAGENT::CComponentHandle::getComponent, NLAIAGENT::CAgentScript::getDynamicName, NLAIAGENT::CAgentOperation::runMethodBase, NLAIAGENT::CAgentWatchTimer::runMethodBase, runMethodeMember, NLAIAGENT::IObjectIA::runMethodeMember, NLAISCRIPT::CFindRunMsg::runOpCode, and NLAISCRIPT::CMarkMsg::runOpCode.

virtual CConstIteratorContener NLAIAGENT::IBaseGroupType::getConstIterator   const [pure virtual]
 

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAISCRIPT::CCallPrint::format, NLAISCRIPT::CCallPrint::printList, and NLAISCRIPT::CParam::push.

virtual const IObjectIA* NLAIAGENT::IBaseGroupType::getFront   const [pure virtual]
 

return the front IObjectIA.

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAISCRIPT::CCompilateur::findMethode, NLAIFUZZY::CFuzzyVar::init, NLAIFUZZY::CFuzzyRuleSet::init, NLAIAGENT::COperatorScript::order, NLAIAGENT::CAgentScript::removeDynamic, NLAISCRIPT::CConstraintMethode::run, NLAILOGIC::CGoalPath::runMethodBase, NLAIAGENT::CActorScript::runMethodBase, runMethodeMember, NLAILOGIC::CGoalStack::runMethodeMember, NLAILOGIC::CInternalGoal::runMethodeMember, NLAILOGIC::CGoal::runMethodeMember, and NLAILOGIC::CFact::runMethodeMember.

virtual CIteratorContener NLAIAGENT::IBaseGroupType::getIterator   [pure virtual]
 

Get an iterator to parse the list.

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAICHARACTER::IZone::getAttachement, NLAISCRIPT::CCompilateur::getInheritanceRange, NLAIAGENT::CAgentWatchTimer::runMethodBase, NLAISCRIPT::CMsgSetSender::runOpCode, NLAISCRIPT::CFindRunMsg::runOpCode, NLAISCRIPT::CMethodContextDebug::saveConstext, NLAISCRIPT::CMethodContext::saveConstext, and NLAISCRIPT::CCompilateur::validateHierarchyMethode.

sint32 NLAIAGENT::IBaseGroupType::getMethodIndexSize   const [virtual]
 

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::CVectorGroupType.

Definition at line 92 of file group_type.cpp.

sint32 NLAIAGENT::IBaseGroupType::isClassInheritedFrom const IVarName   const [virtual]
 

isClassInheritedFrom(className) allow us to known if this class have a base class with the name className.

If true the method return the range of the base class, this range is an arbitrary reference id define by the programmer or bay the scrypt. the false return is define by -1.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::CMessageScript.

Definition at line 256 of file group_type.cpp.

tQueue NLAIAGENT::IBaseGroupType::isMember const IVarName  ,
const IVarName  ,
const IObjectIA  
const [virtual]
 

The method isMember(nameSubClass,methodName,param) return the best method correspondent to the search.

remember we use the overloadind method.

NameSubClass: if this pointer is not NULL then NameSubClass is the name of the base class were the method are defined.

methodName: is the name of the class.

param: is an IObjectIA where it defined the parametre of the method. lot of method use a IObjectIA vector object with an NLAIC::CIdentType as the the template argm.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::CVectorGroupType.

Definition at line 97 of file group_type.cpp.

References _Method, NLAIAGENT::_Push, NLAIAGENT::_PushFront, NLAIAGENT::_Set, NLAIAGENT::_Size, NLAIAGENT::IBaseGroupType::CMethodCall::Index, NLAIAGENT::IObjetOp::IObjetOp::isMember, s, NLAIAGENT::tQueue, and NLAIC::CIdentType::VoidType.

bool NLAIAGENT::IBaseGroupType::isTrue   const [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Implements NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::IListBasicManager.

Definition at line 261 of file group_type.cpp.

virtual IObjetOp* NLAIAGENT::IBaseGroupType::operator!   const [pure virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Implemented in NLAIAGENT::IListBasicManager.

IObjetOp & NLAIAGENT::IBaseGroupType::operator+= const IObjetOp   a [virtual]
 

add the operater by anather.

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::IListBasicManager.

Definition at line 68 of file group_type.cpp.

References cpy.

IObjetOp & NLAIAGENT::IBaseGroupType::operator+= IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 80 of file group_type.cpp.

References push.

IObjetOp & NLAIAGENT::IBaseGroupType::operator-= const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::IListBasicManager.

Definition at line 74 of file group_type.cpp.

References erase.

IObjetOp & NLAIAGENT::IBaseGroupType::operator-= IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 86 of file group_type.cpp.

References erase.

virtual IObjectIA& NLAIAGENT::IBaseGroupType::operator= const IObjectIA   a [pure virtual]
 

Equality operator.

Reimplemented from NLAIAGENT::IObjectIA.

Implemented in NLAIAGENT::CGroupType.

virtual const IObjectIA* NLAIAGENT::IBaseGroupType::operator[] sint32    const [pure virtual]
 

Implemented in NLAIAGENT::CGroupType.

virtual const IObjectIA* NLAIAGENT::IBaseGroupType::pop   [pure virtual]
 

Pop the back IObjectIA and return it.

Implemented in NLAIAGENT::CGroupType.

Referenced by runMethodeMember.

virtual const IObjectIA* NLAIAGENT::IBaseGroupType::popFront   [pure virtual]
 

Pop the front IObjectIA and return it.

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAIFUZZY::CFuzzyVar::init, NLAIFUZZY::CFuzzyRuleSet::init, NLAIAGENT::COperatorScript::order, NLAILOGIC::CGoalPath::runMethodBase, NLAIAGENT::CActorScript::runMethodBase, runMethodeMember, NLAILOGIC::CGoalStack::runMethodeMember, NLAILOGIC::CInternalGoal::runMethodeMember, NLAILOGIC::CGoal::runMethodeMember, and NLAILOGIC::CFact::runMethodeMember.

virtual void NLAIAGENT::IBaseGroupType::push const IObjectIA   o [pure virtual]
 

Push an IObjectIA back.

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAICHARACTER::IZone::addObject, operator+=, and runMethodeMember.

virtual void NLAIAGENT::IBaseGroupType::pushFront const IObjectIA   o [pure virtual]
 

Push an IObjectIA front.

Implemented in NLAIAGENT::CGroupType.

Referenced by runMethodeMember.

IObjectIA::CProcessResult NLAIAGENT::IBaseGroupType::runMethodeMember sint32    index,
IObjectIA  
[virtual]
 

The methode runMethodeMember(sint32 index,IObjectIA *param) allow us to run a own member method.

index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::CVectorGroupType.

Definition at line 151 of file group_type.cpp.

References NLAIAGENT::_Back, NLAIAGENT::_Front, NLAIAGENT::_Get, NLAIAGENT::_Pop, NLAIAGENT::_PopFront, NLAIAGENT::_Push, NLAIAGENT::_PushFront, NLAIAGENT::_Set, NLAIAGENT::_Size, get, getFront, IBaseGroupType, index, NLAIAGENT::IObjectIA::IObjectIA, param, pop, popFront, push, pushFront, set, and size.

IObjectIA::CProcessResult NLAIAGENT::IBaseGroupType::runMethodeMember sint32   ,
sint32   ,
IObjectIA  
[virtual]
 

The methode runMethodeMember(sint32 heritance, sint32 index, IObjectIA *param) allow us to run a member method.

heritance: is the id returned by the methodisClassInheritedFrom(const IVarName &). index: is the method id return by the isMember(const IVarName *,const IVarName *,const IObjectIA &) const method. param: is the parametre for the method.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::CVectorGroupType.

Definition at line 147 of file group_type.cpp.

virtual void NLAIAGENT::IBaseGroupType::set int   ,
IObjectIA  
[pure virtual]
 

Push an IObjectIA at the position indicate by the int.

Implemented in NLAIAGENT::CGroupType.

Referenced by runMethodeMember.

virtual sint32 NLAIAGENT::IBaseGroupType::size   const [pure virtual]
 

get the size of the list.

Implemented in NLAIAGENT::CGroupType.

Referenced by NLAISCRIPT::CCompilateur::findMethode, NLAIAGENT::CComponentHandle::getComponent, NLAISCRIPT::CCompilateur::getInheritanceRange, NLAIFUZZY::CFuzzyVar::init, NLAIFUZZY::CFuzzyRuleSet::init, NLAIAGENT::COperatorScript::order, NLAILOGIC::CGoalPath::runMethodBase, NLAIAGENT::CAgentWatchTimer::runMethodBase, NLAIAGENT::CActorScript::runMethodBase, runMethodeMember, NLAILOGIC::CInternalGoal::runMethodeMember, NLAILOGIC::CGoal::runMethodeMember, NLAISCRIPT::CMsgSetSender::runOpCode, and NLAISCRIPT::CMethodContextDebug::saveConstext.


Member Data Documentation

IBaseGroupType::CMethodCall NLAIAGENT::IBaseGroupType::_Method [static]
 

Initial value:

 
        {
                IBaseGroupType::CMethodCall(_CONSTRUCTOR_,_Const),
                IBaseGroupType::CMethodCall("Push",_Push),
                IBaseGroupType::CMethodCall("PushFront",_PushFront),
                IBaseGroupType::CMethodCall("Pop",_Pop),
                IBaseGroupType::CMethodCall("PopFront",_PopFront),
                IBaseGroupType::CMethodCall("Back",_Back),
                IBaseGroupType::CMethodCall("Front",_Front),            
                IBaseGroupType::CMethodCall("Get",_Get),
                IBaseGroupType::CMethodCall("Set",_Set),
                IBaseGroupType::CMethodCall("Size",_Size)
        }

Reimplemented in NLAIAGENT::IMessageBase.

Definition at line 46 of file group_type.cpp.

Referenced by isMember.


The documentation for this class was generated from the following files: