# 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

Inheritance graph
[legend]
Collaboration diagram for NLAIAGENT::IBaseGroupType:

Collaboration graph
[legend]
List of all members.

Public Methods

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

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

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

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

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

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

Some IObjectIA method definition.
virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of external method. 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.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

virtual void clear () = 0
 Clear the list.


Static Public Attributes

CMethodCall _Method []

Detailed Description

Base class for a IObjetOp list object.

Author(s):
Portier Pierre , Chafik sameh , Nevrax France
Date:
2000

Definition at line 397 of file agent_object.h.


Constructor & Destructor Documentation

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

Definition at line 414 of file agent_object.h.

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

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

Clear the list.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

Push an IObjectIA back using the clone method.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Referenced by NLAISCRIPT::CCompilateur::buildObject(), NLAISCRIPT::CCompilateur::nameMethodeProcessing(), and NLAISCRIPT::CMakeArgOpCode::runOpCode().

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

Erase all element contain in the list.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

void NLAIAGENT::IBaseGroupType::erase ( const IObjectIA & obj ) [pure virtual]
 

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

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

void NLAIAGENT::IBaseGroupType::erase ( const IObjectIA * o ) [pure virtual]
 

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

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

void NLAIAGENT::IBaseGroupType::eraseAll ( const IObjectIA & obj ) [pure virtual]
 

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

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

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

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

return the back IObjectIA.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Referenced by NLAISCRIPT::CCompilateur::findMethode(), NLAIAGENT::CAgentScript::getDynamicAgent(), NLAIAGENT::CAgentScript::getDynamicName(), NLAIAGENT::CAgentScript::removeDynamic(), and NLAISCRIPT::CMarkMsg::runOpCode().

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

return the front IObjectIA.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Referenced by NLAISCRIPT::CCompilateur::findMethode(), NLAIFUZZY::CFuzzyVar::init(), NLAIFUZZY::CFuzzyRuleSet::init(), and NLAILOGIC::CGoal::runMethodeMember().

CIteratorContener NLAIAGENT::IBaseGroupType::getIterator ( ) const [pure virtual]
 

Get an iterator to parse the list.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Referenced by NLAISCRIPT::CCallPrint::format(), NLAISCRIPT::CCompilateur::getInheritanceRange(), NLAISCRIPT::CCallPrint::printList(), NLAISCRIPT::CParam::push(), 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 external method.

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, and NLAIAGENT::IMessageBase.

Definition at line 68 of file group_type.cpp.

sint32 NLAIAGENT::IBaseGroupType::isClassInheritedFrom ( const IVarName & class_name ) 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 225 of file group_type.cpp.

tQueue NLAIAGENT::IBaseGroupType::isMember ( const IVarName * className,
const IVarName * name,
const IObjectIA & param ) 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::IObjetOp.

Reimplemented in NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, and NLAIAGENT::COnChangeMsg.

Definition at line 73 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::IListBasicManager.

Definition at line 230 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

IObjetOp * NLAIAGENT::IBaseGroupType::operator+ ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 422 of file agent_object.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

IObjetOp * NLAIAGENT::IBaseGroupType::operator- ( const IObjetOp & a ) const [inline, virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 428 of file agent_object.h.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

Equality operator.

Reimplemented from NLAIAGENT::IObjectIA.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, and NLAIAGENT::IMessageBase.

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

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

Pop the back IObjectIA and return it.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

Pop the front IObjectIA and return it.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Referenced by NLAIFUZZY::CFuzzyVar::init(), NLAIFUZZY::CFuzzyRuleSet::init(), and NLAILOGIC::CGoal::runMethodeMember().

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

Push an IObjectIA back.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

Push an IObjectIA front.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

IObjectIA::CProcessResult NLAIAGENT::IBaseGroupType::runMethodeMember ( sint32 index,
IObjectIA * param ) [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::IObjetOp.

Reimplemented in NLAIAGENT::CVectorGroupType, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, and NLAIAGENT::COnChangeMsg.

Definition at line 119 of file group_type.cpp.

IObjectIA::CProcessResult NLAIAGENT::IBaseGroupType::runMethodeMember ( sint32 heritance,
sint32 index,
IObjectIA * param ) [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, NLAIAGENT::IListBasicManager, NLAIAGENT::CMessageScript, NLAIAGENT::IMessageBase, NLAIAGENT::CSuccessMsg, NLAIAGENT::CFailureMsg, NLAIAGENT::CFactMsg, NLAIAGENT::CGoalMsg, NLAIAGENT::CCancelGoalMsg, and NLAIAGENT::COnChangeMsg.

Definition at line 115 of file group_type.cpp.

void NLAIAGENT::IBaseGroupType::set ( int index,
IObjectIA * o ) [pure virtual]
 

Push an IObjectIA at the position indicate by the int.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

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

get the size of the list.

Reimplemented in NLAIAGENT::CGroupType, NLAIAGENT::CVectorGroupType, and NLAIAGENT::IListBasicManager.

Referenced by NLAISCRIPT::CCompilateur::findMethode(), NLAISCRIPT::CCompilateur::getInheritanceRange(), NLAISCRIPT::CCompilateur::getValidateHierarchyBase(), NLAIFUZZY::CFuzzyVar::init(), NLAIFUZZY::CFuzzyRuleSet::init(), NLAILOGIC::CGoal::runMethodeMember(), NLAISCRIPT::CMsgSetSender::runOpCode(), NLAISCRIPT::CMethodContextDebug::saveConstext(), and NLAISCRIPT::CMethodContext::saveConstext().


Member Data Documentation

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

Initializer:

{
                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.


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