# 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

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

Collaboration graph
[legend]
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 (char *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 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...

IObjetOpoperator! () const
 throw (NLAIE::CExceptionNotImplemented). More...

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

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

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

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 external method. 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(s):
Portier Pierre , Chafik sameh , Nevrax France
Date:
2000

Definition at line 578 of file agent_object.h.


Member Typedef Documentation

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

Definition at line 586 of file agent_object.h.


Constructor & Destructor Documentation

NLAIAGENT::CVectorGroupType::CVectorGroupType ( sint32 i )
 

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

Definition at line 660 of file group_type.cpp.

NLAIAGENT::CVectorGroupType::CVectorGroupType ( )
 

Definition at line 664 of file group_type.cpp.

NLAIAGENT::CVectorGroupType::CVectorGroupType ( const CVectorGroupType & g )
 

Definition at line 668 of file group_type.cpp.

NLAIAGENT::CVectorGroupType::~CVectorGroupType ( ) [virtual]
 

Definition at line 1005 of file group_type.cpp.


Member Function Documentation

void NLAIAGENT::CVectorGroupType::clear ( ) [virtual]
 

Clear the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 948 of file group_type.cpp.

const NLAIC::IBasicType * NLAIAGENT::CVectorGroupType::clone ( void ) const [virtual]
 

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

Reimplemented from NLAIC::IBasicType.

Definition at line 890 of file group_type.cpp.

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

Push an IObjectIA back using the clone method.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 721 of file group_type.cpp.

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

Erase all element contain in the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 866 of file group_type.cpp.

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

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 850 of file group_type.cpp.

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

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 834 of file group_type.cpp.

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

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 818 of file group_type.cpp.

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

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 807 of file group_type.cpp.

CVectorGroupType::tVectorType NLAIAGENT::CVectorGroupType::findList ( const IObjectIA & obj ) const
 

Definition at line 755 of file group_type.cpp.

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

return the back IObjectIA.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 733 of file group_type.cpp.

CVectorGroupType::tVectorType::iterator NLAIAGENT::CVectorGroupType::getBegin ( )
 

Definition at line 797 of file group_type.cpp.

CVectorGroupType::tVectorType::const_iterator NLAIAGENT::CVectorGroupType::getBegin ( ) const
 

Definition at line 787 of file group_type.cpp.

void NLAIAGENT::CVectorGroupType::getDebugString ( char * t ) 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.

Reimplemented from NLAIC::IBasicType.

Definition at line 678 of file group_type.cpp.

CVectorGroupType::tVectorType::iterator NLAIAGENT::CVectorGroupType::getEnd ( )
 

Definition at line 802 of file group_type.cpp.

CVectorGroupType::tVectorType::const_iterator NLAIAGENT::CVectorGroupType::getEnd ( ) const
 

Definition at line 792 of file group_type.cpp.

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

return the front IObjectIA.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 745 of file group_type.cpp.

CIteratorContener NLAIAGENT::CVectorGroupType::getIterator ( ) const [inline, virtual]
 

Get an iterator to parse the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 617 of file agent_object.h.

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

getMethodIndexSize define the nomber of external method.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 984 of file group_type.cpp.

const NLAIC::CIdentType & NLAIAGENT::CVectorGroupType::getType ( void ) 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).

Reimplemented from NLAIC::IBasicType.

Definition at line 639 of file group_type.cpp.

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

Definition at line 654 of file group_type.cpp.

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

Reimplemented from NLAIAGENT::IBasicObjectIA.

Definition at line 875 of file group_type.cpp.

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

Definition at line 959 of file group_type.cpp.

void NLAIAGENT::CVectorGroupType::load ( NLMISC::IStream & is ) [virtual]
 

Load the class from a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 927 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 915 of file group_type.cpp.

const NLAIC::IBasicType * NLAIAGENT::CVectorGroupType::newInstance ( void ) const [virtual]
 

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

Reimplemented from NLAIC::IBasicType.

Definition at line 896 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 616 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 604 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 610 of file group_type.cpp.

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

Equality operator.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 622 of file group_type.cpp.

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 768 of file group_type.cpp.

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

Pop the back IObjectIA and return it.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 726 of file group_type.cpp.

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

Pop the front IObjectIA and return it.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 738 of file group_type.cpp.

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

Push an IObjectIA back.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 705 of file group_type.cpp.

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

Push an IObjectIA front.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 710 of file group_type.cpp.

Referenced by NLAISCRIPT::CCompilateur::registerMethod().

const IObjectIA::CProcessResult & NLAIAGENT::CVectorGroupType::run ( void ) [virtual]
 

Some where Run method define the process of the agen.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 644 of file group_type.cpp.

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

Definition at line 993 of file group_type.cpp.

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

Definition at line 989 of file group_type.cpp.

void NLAIAGENT::CVectorGroupType::save ( NLMISC::IStream & os ) [virtual]
 

Save the class in a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 902 of file group_type.cpp.

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

Push an IObjectIA at the position indicate by the int.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 780 of file group_type.cpp.

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

Definition at line 622 of file agent_object.h.

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

get the size of the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 750 of file group_type.cpp.


Member Data Documentation

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

Definition at line 582 of file agent_object.h.

tVectorType NLAIAGENT::CVectorGroupType::_Vector [private]
 

std::vector for store IObjectIA object.

Definition at line 589 of file agent_object.h.


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