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

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

#include <agent_object.h>

Inheritance diagram for NLAIAGENT::CGroupType

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::list<const IObjectIA *> tListType

Public Methods

 CGroupType ()
 CGroupType (const CGroupType &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...

virtual CIteratorContener getIterator () const
 Get an iterator to parse the list. 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...

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

tListType findList (const IObjectIA &obj) const
tListType::const_iterator getBegin () const
tListType::const_iterator getEnd () const
tListType::iterator getBegin ()
tListType::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 ~CGroupType ()

Public Attributes

tListType _List
 std::list for store IObjectIA object. More...


Static Public Attributes

const NLAIC::CIdentType IdGroupType

Protected Methods

tListTypegetList ()

Detailed Description

concret IBaseGroupType with a std::list container.

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

Definition at line 499 of file agent_object.h.


Member Typedef Documentation

typedef std::list<const IObjectIA *> NLAIAGENT::CGroupType::tListType
 

Definition at line 507 of file agent_object.h.


Constructor & Destructor Documentation

NLAIAGENT::CGroupType::CGroupType ( )
 

Definition at line 315 of file group_type.cpp.

NLAIAGENT::CGroupType::CGroupType ( const CGroupType & g )
 

Definition at line 319 of file group_type.cpp.

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

Definition at line 596 of file group_type.cpp.


Member Function Documentation

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

Clear the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 585 of file group_type.cpp.

const NLAIC::IBasicType * NLAIAGENT::CGroupType::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 527 of file group_type.cpp.

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

Push an IObjectIA back using the clone method.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 356 of file group_type.cpp.

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

Erase all element contain in the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 498 of file group_type.cpp.

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

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 482 of file group_type.cpp.

void NLAIAGENT::CGroupType::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 466 of file group_type.cpp.

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

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 450 of file group_type.cpp.

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

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 423 of file group_type.cpp.

CGroupType::tListType NLAIAGENT::CGroupType::findList ( const IObjectIA & obj ) const
 

Definition at line 390 of file group_type.cpp.

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

return the back IObjectIA.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 368 of file group_type.cpp.

CGroupType::tListType::iterator NLAIAGENT::CGroupType::getBegin ( )
 

Definition at line 413 of file group_type.cpp.

CGroupType::tListType::const_iterator NLAIAGENT::CGroupType::getBegin ( ) const
 

Definition at line 403 of file group_type.cpp.

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

Reimplemented from NLAIC::IBasicType.

Definition at line 328 of file group_type.cpp.

CGroupType::tListType::iterator NLAIAGENT::CGroupType::getEnd ( )
 

Definition at line 418 of file group_type.cpp.

CGroupType::tListType::const_iterator NLAIAGENT::CGroupType::getEnd ( ) const
 

Definition at line 408 of file group_type.cpp.

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

return the front IObjectIA.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 380 of file group_type.cpp.

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

Get an iterator to parse the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 532 of file agent_object.h.

CGroupType::tListType & NLAIAGENT::CGroupType::getList ( ) [protected]
 

Definition at line 310 of file group_type.cpp.

const NLAIC::CIdentType & NLAIAGENT::CGroupType::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 295 of file group_type.cpp.

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

bool NLAIAGENT::CGroupType::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 507 of file group_type.cpp.

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

Load the class from a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 564 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IObjetOp.

Definition at line 552 of file group_type.cpp.

const NLAIC::IBasicType * NLAIAGENT::CGroupType::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 533 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 250 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 238 of file group_type.cpp.

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

throw (NLAIE::CExceptionNotImplemented).

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 244 of file group_type.cpp.

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

Equality operator.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 256 of file group_type.cpp.

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

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 272 of file group_type.cpp.

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

Pop the back IObjectIA and return it.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 361 of file group_type.cpp.

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

Pop the front IObjectIA and return it.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 373 of file group_type.cpp.

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

Push an IObjectIA back.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 346 of file group_type.cpp.

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

Push an IObjectIA front.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 351 of file group_type.cpp.

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

Some where Run method define the process of the agen.

Reimplemented from NLAIAGENT::IObjectIA.

Definition at line 300 of file group_type.cpp.

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

Save the class in a stream.

Reimplemented from NLAIC::IBasicInterface.

Definition at line 539 of file group_type.cpp.

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

Push an IObjectIA at the position indicate by the int.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 286 of file group_type.cpp.

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

get the size of the list.

Reimplemented from NLAIAGENT::IBaseGroupType.

Definition at line 385 of file group_type.cpp.


Member Data Documentation

const NLAIC::CIdentType NLAIAGENT::CGroupType::IdGroupType [static]
 

Definition at line 503 of file agent_object.h.

tListType NLAIAGENT::CGroupType::_List
 

std::list for store IObjectIA object.

Definition at line 510 of file agent_object.h.


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