# 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::CVectorGroupType Class Reference

concret IBaseGroupType with a std::vector container. More...

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CVectorGroupType:

NLAIAGENT::IBaseGroupType NLAIAGENT::IObjetOp NLAIAGENT::IObjectIA NLAIAGENT::IBasicObjectIA NLAIC::IBasicInterface NLAIC::IBasicType NLAIC::IPointerGestion NLMISC::IStreamable NLMISC::IClassable List of all members.

Public Types

typedef std::vector< const
IObjectIA * > 
tVectorType

Public Methods

 CVectorGroupType (sint32)
 Construct a vector with n uninitialize momory unite. Programmer must initialize the vector list after. More...

 CVectorGroupType ()
 CVectorGroupType (const CVectorGroupType &g)
virtual void getDebugString (std::string &text) const
 This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user. More...

virtual const CProcessResult & run ()
 Some where Run method define the process of the agen. More...

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

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

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

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

virtual IObjectIAoperator= (const IObjectIA &a)
 Equality operator. More...

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

IObjetOpCVectorGroupType::operator! () const
void push (const IObjectIA *o)
 Push an IObjectIA back. More...

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

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

virtual CConstIteratorContener getConstIterator () const
void setObject (sint32 i, IObjectIA *a)
void cpy (const IObjectIA &o)
 Push an IObjectIA back using the clone method. More...

const IObjectIApop ()
 Pop the back IObjectIA and return it. More...

const IObjectIAget () const
 return the back IObjectIA. More...

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

const IObjectIAgetFront () const
 return the front IObjectIA. More...

sint32 size () const
 get the size of the list. More...

tVectorType findList (const IObjectIA &obj) const
tVectorType::const_iterator getBegin () const
tVectorType::const_iterator getEnd () const
tVectorType::iterator getBegin ()
tVectorType::iterator getEnd ()
const IObjectIAfind (const IObjectIA &obj) const
 Find an element on the list the operator== is use. More...

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

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

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

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

virtual bool isEqual (const IBasicObjectIA &a) const
 The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'. More...

virtual const NLAIC::IBasicTypeclone () const
 This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne. More...

virtual const NLAIC::IBasicTypenewInstance () const
 This function allow a new instance, that mean that the class is a class factory. More...

virtual const NLAIC::CIdentTypegetType () const
 getType return a unique string how represente the class, it can be the name of the class. More...

virtual void save (NLMISC::IStream &os)
 Save the class in a stream. More...

virtual IObjetOpneg ()
 throw (NLAIE::CExceptionNotImplemented). More...

virtual void load (NLMISC::IStream &is)
 Load the class from a stream. More...

void clear ()
 Clear the list. More...

virtual sint32 getMethodIndexSize () const
 getMethodIndexSize define the nomber of method define in the class. 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...

virtual ~CVectorGroupType ()

Static Public Attributes

const NLAIC::CIdentType IdVectorGroupType

Protected Methods

tVectorTypegetVector ()

Private Attributes

tVectorType _Vector
 std::vector for store IObjectIA object. More...


Detailed Description

concret IBaseGroupType with a std::vector container.

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

Definition at line 720 of file agent_object.h.


Member Typedef Documentation

typedef std::vector<const IObjectIA *> NLAIAGENT::CVectorGroupType::tVectorType
 

Definition at line 728 of file agent_object.h.

Referenced by findList.


Constructor & Destructor Documentation

NLAIAGENT::CVectorGroupType::CVectorGroupType sint32   
 

Construct a vector with n uninitialize momory unite. Programmer must initialize the vector list after.

Definition at line 789 of file group_type.cpp.

Referenced by isEqual, operator+, operator-, and operator=.

NLAIAGENT::CVectorGroupType::CVectorGroupType  
 

Definition at line 793 of file group_type.cpp.

Referenced by clone, newInstance, operator+, and operator-.

NLAIAGENT::CVectorGroupType::CVectorGroupType const CVectorGroupType &    g
 

Definition at line 797 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

NLAIAGENT::CVectorGroupType::~CVectorGroupType   [virtual]
 

Definition at line 1131 of file group_type.cpp.

References clear.


Member Function Documentation

void NLAIAGENT::CVectorGroupType::clear   [virtual]
 

Clear the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 1076 of file group_type.cpp.

References _Vector, and NLAIC::IPointerGestion::release.

Referenced by operator=, and ~CVectorGroupType.

const NLAIC::IBasicType * NLAIAGENT::CVectorGroupType::clone   const [virtual]
 

This function allow a pointer copy, that mean that the new class have the sam attributs caracteristics as the owne.

Implements NLAIC::IBasicType.

Definition at line 1018 of file group_type.cpp.

References CVectorGroupType.

Referenced by operator=.

void NLAIAGENT::CVectorGroupType::cpy const IObjectIA   o [virtual]
 

Push an IObjectIA back using the clone method.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 849 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

IObjetOp* NLAIAGENT::CVectorGroupType::CVectorGroupType::operator!   const
 

void NLAIAGENT::CVectorGroupType::erase std::list< const IObjectIA * > &    l [virtual]
 

Erase all element contain in the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 994 of file group_type.cpp.

References erase, and NLAISCRIPT::l.

void NLAIAGENT::CVectorGroupType::erase const IObjectIA   obj [virtual]
 

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

Implements NLAIAGENT::IBaseGroupType.

Definition at line 978 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

void NLAIAGENT::CVectorGroupType::erase const IObjectIA   o [virtual]
 

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

Implements NLAIAGENT::IBaseGroupType.

Definition at line 962 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

Referenced by erase.

void NLAIAGENT::CVectorGroupType::eraseAll const IObjectIA   obj [virtual]
 

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

Implements NLAIAGENT::IBaseGroupType.

Definition at line 946 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

const IObjectIA * NLAIAGENT::CVectorGroupType::find const IObjectIA   obj const [virtual]
 

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

Implements NLAIAGENT::IBaseGroupType.

Definition at line 935 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

CVectorGroupType::tVectorType NLAIAGENT::CVectorGroupType::findList const IObjectIA   obj const
 

Definition at line 883 of file group_type.cpp.

References _Vector, NLAIAGENT::IObjectIA::IObjectIA, NLAISCRIPT::l, and tVectorType.

const IObjectIA * NLAIAGENT::CVectorGroupType::get   const [virtual]
 

return the back IObjectIA.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 861 of file group_type.cpp.

References _Vector.

CVectorGroupType::tVectorType::iterator NLAIAGENT::CVectorGroupType::getBegin  
 

Definition at line 925 of file group_type.cpp.

References _Vector.

CVectorGroupType::tVectorType::const_iterator NLAIAGENT::CVectorGroupType::getBegin   const
 

Definition at line 915 of file group_type.cpp.

References _Vector.

virtual CConstIteratorContener NLAIAGENT::CVectorGroupType::getConstIterator   const [inline, virtual]
 

Implements NLAIAGENT::IBaseGroupType.

Definition at line 768 of file agent_object.h.

void NLAIAGENT::CVectorGroupType::getDebugString std::string &    text const [virtual]
 

This is a Debug function, text is an character pointer to receive the debug text output, the debug text containe all think sensible to interset user.

Implements NLAIC::IBasicType.

Definition at line 807 of file group_type.cpp.

References _Vector, NLAIAGENT::IObjectIA::IObjectIA, and NLAIC::stringGetBuild.

CVectorGroupType::tVectorType::iterator NLAIAGENT::CVectorGroupType::getEnd  
 

Definition at line 930 of file group_type.cpp.

References _Vector.

CVectorGroupType::tVectorType::const_iterator NLAIAGENT::CVectorGroupType::getEnd   const
 

Definition at line 920 of file group_type.cpp.

References _Vector.

const IObjectIA * NLAIAGENT::CVectorGroupType::getFront   const [virtual]
 

return the front IObjectIA.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 873 of file group_type.cpp.

References _Vector.

virtual CIteratorContener NLAIAGENT::CVectorGroupType::getIterator   [inline, virtual]
 

Get an iterator to parse the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 763 of file agent_object.h.

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

getMethodIndexSize define the nomber of method define in the class.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 1110 of file group_type.cpp.

const NLAIC::CIdentType & NLAIAGENT::CVectorGroupType::getType   const [virtual]
 

getType return a unique string how represente the class, it can be the name of the class.

This function is used for the sytem regstry class (see the definition of the template class Gen::CRegistry).

Implements NLAIC::IBasicType.

Definition at line 768 of file group_type.cpp.

References IdVectorGroupType.

CVectorGroupType::tVectorType & NLAIAGENT::CVectorGroupType::getVector   [protected]
 

Definition at line 783 of file group_type.cpp.

References _Vector.

bool NLAIAGENT::CVectorGroupType::isEqual const IBasicObjectIA   a const [virtual]
 

The bool operator==(const IBasicObjectIA &a) const member method call this function when class 'classType' have the same type of this class, programme have to assume the equality between the memebers of this class and the memeber of the class 'classType'.

Implements NLAIAGENT::IBasicObjectIA.

Definition at line 1003 of file group_type.cpp.

References _Vector, CVectorGroupType, and size.

tQueue NLAIAGENT::CVectorGroupType::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::IBaseGroupType.

Definition at line 1086 of file group_type.cpp.

References param, NLAISCRIPT::CParam::size, NLAIAGENT::tQueue, and NLAIC::CIdentType::VoidType.

void NLAIAGENT::CVectorGroupType::load NLMISC::IStream   is [virtual]
 

Load the class from a stream.

Implements NLAIC::IBasicInterface.

Definition at line 1055 of file group_type.cpp.

References _Vector, NLAIC::CIdentTypeAlloc::allocClass, id, NLAIAGENT::IObjectIA::IObjectIA, NLAIC::IBasicInterface::load, NLAIC::IPointerGestion::release, and NLMISC::IStream::serial.

IObjetOp & NLAIAGENT::CVectorGroupType::neg   [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 1043 of file group_type.cpp.

References _Vector, NLAIAGENT::IObjetOp::IObjetOp, and NLAIC::CTypeOfOperator::opNeg.

const NLAIC::IBasicType * NLAIAGENT::CVectorGroupType::newInstance   const [virtual]
 

This function allow a new instance, that mean that the class is a class factory.

Implements NLAIC::IBasicType.

Definition at line 1024 of file group_type.cpp.

References CVectorGroupType.

IObjetOp * NLAIAGENT::CVectorGroupType::operator+ IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 683 of file group_type.cpp.

References _Vector, CVectorGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjetOp * NLAIAGENT::CVectorGroupType::operator+ const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 714 of file group_type.cpp.

References _Vector, CVectorGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjetOp * NLAIAGENT::CVectorGroupType::operator- IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 698 of file group_type.cpp.

References _Vector, CVectorGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjetOp * NLAIAGENT::CVectorGroupType::operator- const IObjetOp   a [virtual]
 

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 729 of file group_type.cpp.

References _Vector, CVectorGroupType, and NLAIAGENT::IObjetOp::IObjetOp.

IObjectIA & NLAIAGENT::CVectorGroupType::operator= const IObjectIA   a [virtual]
 

Equality operator.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 751 of file group_type.cpp.

References _Vector, clear, clone, CVectorGroupType, NLAIAGENT::IObjectIA::IObjectIA, and NLAIC::CTypeOfObject::tList.

const IObjectIA * NLAIAGENT::CVectorGroupType::operator[] sint32    const [virtual]
 

Implements NLAIAGENT::IBaseGroupType.

Definition at line 896 of file group_type.cpp.

References _Vector, and index.

const IObjectIA * NLAIAGENT::CVectorGroupType::pop   [virtual]
 

Pop the back IObjectIA and return it.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 854 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

const IObjectIA * NLAIAGENT::CVectorGroupType::popFront   [virtual]
 

Pop the front IObjectIA and return it.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 866 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

void NLAIAGENT::CVectorGroupType::push const IObjectIA   o [virtual]
 

Push an IObjectIA back.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 833 of file group_type.cpp.

References _Vector.

void NLAIAGENT::CVectorGroupType::pushFront const IObjectIA   o [virtual]
 

Push an IObjectIA front.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 838 of file group_type.cpp.

References _Vector.

Referenced by NLAISCRIPT::CCompilateur::registerMethod.

const IObjectIA::CProcessResult & NLAIAGENT::CVectorGroupType::run   [virtual]
 

Some where Run method define the process of the agen.

Implements NLAIAGENT::IObjectIA.

Definition at line 773 of file group_type.cpp.

References _Vector, and NLAIAGENT::IObjectIA::IObjectIA.

IObjectIA::CProcessResult NLAIAGENT::CVectorGroupType::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::IBaseGroupType.

Definition at line 1119 of file group_type.cpp.

References _Vector, NLAIAGENT::IBaseGroupType::IBaseGroupType, index, and param.

IObjectIA::CProcessResult NLAIAGENT::CVectorGroupType::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::IBaseGroupType.

Definition at line 1115 of file group_type.cpp.

void NLAIAGENT::CVectorGroupType::save NLMISC::IStream   os [virtual]
 

Save the class in a stream.

Implements NLAIC::IBasicInterface.

Definition at line 1030 of file group_type.cpp.

References _Vector, NLAIAGENT::IObjectIA::IObjectIA, NLMISC::IStream::serial, and size.

void NLAIAGENT::CVectorGroupType::set int   ,
IObjectIA  
[virtual]
 

Push an IObjectIA at the position indicate by the int.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 908 of file group_type.cpp.

References _Vector, index, and NLAIAGENT::IObjectIA::IObjectIA.

void NLAIAGENT::CVectorGroupType::setObject sint32    i,
IObjectIA   a
[inline]
 

Definition at line 773 of file agent_object.h.

sint32 NLAIAGENT::CVectorGroupType::size   const [virtual]
 

get the size of the list.

Implements NLAIAGENT::IBaseGroupType.

Definition at line 878 of file group_type.cpp.

References _Vector.

Referenced by isEqual, and save.


Member Data Documentation

tVectorType NLAIAGENT::CVectorGroupType::_Vector [private]
 

std::vector for store IObjectIA object.

Definition at line 731 of file agent_object.h.

Referenced by clear, cpy, CVectorGroupType, erase, eraseAll, find, findList, get, getBegin, getDebugString, getEnd, getFront, getVector, isEqual, load, neg, operator+, operator-, operator=, operator[], pop, popFront, push, pushFront, run, runMethodeMember, save, set, and size.

const NLAIC::CIdentType CVectorGroupType::IdVectorGroupType [static]
 

Referenced by NLAIAGENT::CActorScript::getPrivateMember, and getType.


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